cwtools / cwtools/cwtools-vscode

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

Open
#76 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
F#
Stars
110
Forks
19
PR merge metrics
No merged PRs in 30d

Description

## Environment

Version: 0.10.5

## Current Behavior

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

```
Error in \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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.