Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Top level configs throw error #160

Open
PabstMirror opened this issue Feb 11, 2021 · 0 comments
Open

[BUG] Top level configs throw error #160

PabstMirror opened this issue Feb 11, 2021 · 0 comments
Labels
bug Error, flaw, failure or fault that causes to produce an incorrect result or crash

Comments

@PabstMirror
Copy link
Contributor

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

@PabstMirror PabstMirror added the bug Error, flaw, failure or fault that causes to produce an incorrect result or crash label Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Error, flaw, failure or fault that causes to produce an incorrect result or crash
Projects
None yet
Development

No branches or pull requests

1 participant