Skip to content

[BUG] Top level configs throw error #160

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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