cwtools / cwtools-vscode

A VS Code extension providing language server support for paradox script files using cwtools
Other
88 stars 12 forks source link

The tool cannot recognize in-script flag variables (Vic3) #76

Open HaneulCheong opened 1 year ago

HaneulCheong commented 1 year ago

Environment

Version: 0.10.5

Current Behavior

Within ..\game\common\flag_definitions\00_flag_definitions.txt:

Error in <Hidden for privacy>\Steam\steamapps\common\Victoria
3\game\common\flag_definitions\00_flag_definitions.txt: Ln: 37 Col: 28
@canton_scale_cross_x = @[ ( 333 / coa_width ) + 0.001 ]
                           ^
Expecting: end of input or statement
CW001(CW001)

Expected Behavior

@canton_scale_cross_x = @[ ( 333 / coa_width ) + 0.001 ]

This is a valid way of defining an in-script variable for flags and should not be marked up as an error.