Skip to content

Commit eeb5f82

Browse files
authored
fix #3
respect previous tokens and remove tokens for class
1 parent 250e8fb commit eeb5f82

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lua.tmLanguage.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,6 @@
164164
"match": "(?<![^.]\\.|:)\\b(async)\\b(?!\\s*=(?!=))",
165165
"name": "entity.name.tag.lua"
166166
},
167-
{
168-
"match": "(?<![^.]\\.|:)\\b(unknown|any|boolean|number|integer|thread|table|string|userdata|lightuserdata|function|method)\\b(?!\\s*=(?!=))",
169-
"name": "support.type.lua"
170-
},
171167
{
172168
"match": "(?<![^.]\\.|:)\\b(coroutine\\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\\.(concat|insert|maxn|move|pack|remove|sort|unpack)|math\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\.(loadlib|seeall|searchpath)|debug\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\\.(char|codes|codepoint|len|offset))\\b(?!\\s*=(?!=))",
173169
"name": "support.function.library.lua"
@@ -178,7 +174,7 @@
178174
},
179175
{
180176
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*(?:[({\"']|\\[\\[))",
181-
"name": "entity.name.function.lua"
177+
"name": "support.function.any-method.lua"
182178
},
183179
{
184180
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*\\??:)",

0 commit comments

Comments
 (0)