Skip to content

[BUG] Top level configs throw error #160

@PabstMirror

Description

@PabstMirror

Describe the bug
Configs at the top level throw error

To Reproduce
config.cpp:

class CfgPatches { class test {  }; };
topLevelThing = "pants";

command:
sqfvm.exe --input config.cpp --parse-only -a
result:
[ERR] [L3|C0|config.cpp] Parse Error: syntax error, unexpected IDENT, expecting END_OF_FILE
in-game:
getText (configfile >> "topLevelThing") = "pants"

Expected behavior
It to work

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugError, flaw, failure or fault that causes to produce an incorrect result or crash

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions