cyrusfirheir / twee3-language-tools

[ VSCode extension ] Syntax highlighting and programmatic language tools for Twee 3, and Twine 2 storyformats.
https://marketplace.visualstudio.com/items?itemName=cyrusfirheir.twee3-language-tools
MIT License
47 stars 16 forks source link

Verify setup variables #61

Open MinusGix opened 2 years ago

MinusGix commented 2 years ago

It would be useful to let the user specify the names of their setup variables to allow checking them for validity. It isn't uncommon for the access to be written out specifically and so it can be checked against the list to avoid typos. I believe setup is already parsed as some form of variable access and so checking for if it has a literal-word after the dot access should be relatively easy.
This could presumably be enabled by default if it also comes with a feature to easily add the setup definition to the twee-config file.