Skip to content

Commit 8ec4cae

Browse files
committed
update semantic-tokens
1 parent 1863d0e commit 8ec4cae

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

package/semanticTokenScope.lua

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,23 @@ return {
2121
['variable'] = {'variable.other.lua'},
2222
-- close 变量 | Close variable
2323
['variable.abstract'] = {'variable.other.constant.lua'},
24+
-- self
25+
['variable.definition'] = {'variable.language.self.lua'},
2426
-- 局部变量 | Local variable
2527
['variable.declaration'] = {'variable.other.lua'},
2628
-- Lua库常量,如 _G | Lua library constants, such as _G
2729
['variable.defaultLibrary'] = {'support.constant.lua'},
28-
-- 局部变量 | Local variable
29-
['variable.local'] = {'variable.other.lua'},
3030
-- const 变量 | Const variable
3131
['variable.readonly'] = {'variable.other.constant.lua'},
3232
-- 全局变量 | Global variable
3333
['variable.static'] = {'variable.other.lua'},
34+
['keyword'] = {'keyword.control.lua'},
35+
['keyword.declaration'] = {'keyword.local.lua'},
36+
['keyword.readonly'] = {'constant.language.lua'},
37+
['operator'] = {'keyword.operator.lua'},
38+
['number'] = {'constant.numeric.float.lua'},
39+
['number.static'] = {'constant.numeric.integer.lua'},
40+
['string'] = {'string.lua'},
41+
['string.modification'] = {'constant.character.escape.lua'},
42+
['string.deprecated'] = {'invalid.illegal.character.escape.lua'},
3443
}

0 commit comments

Comments
 (0)