I noticed that there were still some issues with types and some of the newer annotation features:
@private, @protected, @package, @enum, @cast and @operator not recognized by the grammar.
# didn't correctly end some luadoc and luadoc.type rules, so the entirety of the description got highlighted as support.type.lua.
Here is the same code after applying the changes in this PR:
Note: The @operator rule currently simply matches the function part with [a-z]+, not with the explicit operator names. Not sure if it's worth to be more specific there.
I noticed that there were still some issues with types and some of the newer annotation features:
@private
,@protected
,@package
,@enum
,@cast
and@operator
not recognized by the grammar.#
didn't correctly end someluadoc
andluadoc.type
rules, so the entirety of the description got highlighted assupport.type.lua
.Here is the same code after applying the changes in this PR:
Note: The
@operator
rule currently simply matches the function part with [a-z]+, not with the explicit operator names. Not sure if it's worth to be more specific there.