KaptainMicila / ZScript-VSCode

GZDoom's ZScript language support for VSCode
MIT License
19 stars 7 forks source link

`States` and `Default` blocks broken detection #2

Open KaptainMicila opened 3 years ago

KaptainMicila commented 3 years ago

Both States and Default blocks are detected by searching for the States and Default words in the text. My plan was to make it that it searched for the two words AND the open curly bracket {, but it seems that VSCode's highlighter does not allow for multiline regexes. If somebody has a clue how to fix this, I would be really happy about it.

KaptainMicila commented 3 years ago

The solution I found works, but it's indetation has to be "only one tab". Of course, I don't like that.