LuaLS / lua.tmbundle

TextMate support for Lua
MIT License
7 stars 5 forks source link

Improved Annotations #7

Closed Thertzlor closed 1 year ago

Thertzlor commented 1 year ago

I noticed that there were still some issues with types and some of the newer annotation features:

badlua_01

@private, @protected, @package, @enum, @cast and @operator not recognized by the grammar.

badlua_02

# 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:

goodlua

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.

sumneko commented 1 year ago

Many thanks!