Fixes #180. Now an error is shown for any open or close directive within area, region, or func.
Rather than add global state to Global, I've added a state parameter to each Validate() method. This makes it more straight forward to handle nested structures, i.e.:
.area 123
.func Foo
.close ; Cannot close inside func
.endfunc
.close ; Cannot close inside area
.endarea
Fixes #180. Now an error is shown for any open or close directive within area, region, or func.
Rather than add global state to
Global
, I've added a state parameter to eachValidate()
method. This makes it more straight forward to handle nested structures, i.e.:-[Unknown]