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

Add Warning for Widgets in Passages #36

Open MinusGix opened 3 years ago

MinusGix commented 3 years ago

A macro like widget can only be used (properly) within a passage with a specific tag, that of [widget], and so giving an warning if it is used outside of it would be a good idea. Doing this is probably not too hard, just an extra check when processing the macros.