In the previous version of the grammar, attributes essentially "floated"
in the tree, meaning they were not actually attached to anything. This
was causing odd issues with syntax highlighting, such as external
functions marked with an @external attribute causing subsequent
syntax highlighting to fail in source files. This commit attaches
attribute nodes only to legal parent nodes (functions and statement
blocks) to make syntax highlighting more consistent.
In the previous version of the grammar, attributes essentially "floated" in the tree, meaning they were not actually attached to anything. This was causing odd issues with syntax highlighting, such as external functions marked with an
@external
attribute causing subsequent syntax highlighting to fail in source files. This commit attaches attribute nodes only to legal parent nodes (functions and statement blocks) to make syntax highlighting more consistent.Closes #69