riej / lsl

Linden Script (LSL) language plugin for IntelliJ IDEA
MIT License
7 stars 2 forks source link

Empty states should not be allowed #10

Closed mewore closed 1 year ago

mewore commented 1 year ago

For example:

state mewINDEX {

}

This is invalid. In SL: syntax-error-empty-state

Meanwhile, the plugin shows it as valid: no-syntax-error-empty-state

As I've mentioned in #9 , I think it will be better if there is no syntax error in the plugin and instead, it parses the whole file and then annotates empty states with an error like "states must contain at least one event".