cwtools-vscode icon indicating copy to clipboard operation
cwtools-vscode copied to clipboard

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

Open HaneulCheong opened this issue 1 year ago • 0 comments

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.

HaneulCheong avatar Jan 11 '23 14:01 HaneulCheong