blob: 779811f59867c5d317b7657a1c11e1584deaae4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
## Syntax Tokens
Provide by custom [tmLanguage file](https://github.com/sumneko/vscode-lua/blob/master/syntaxes/lua.tmLanguage.json)
Preview in `Dark+` of VSCode
| token | preview |
| :---- | :---- |
| `keyword.local.lua` |  |
| `keyword.control.lua` |  |
| `entity.name.class.lua` |  |
| `entity.name.function.lua` |  |
| `punctuation.definition.parameters.begin.lua` |  |
| `punctuation.definition.parameters.finish.lua` |  |
| `variable.parameter.function.lua` |  |
| `punctuation.separator.arguments.lua` |  |
| `constant.numeric.integer.lua` |  |
| `constant.numeric.float.lua` |  |
| `constant.numeric.integer.hexadecimal.lua` |  |
| `constant.numeric.float.hexadecimal.lua` |  |
| `punctuation.definition.string.begin.lua` |  |
| `punctuation.definition.string.end.lua` |  |
| `string.quoted.single.lua` |  |
| `string.quoted.double.lua` |  |
| `string.quoted.other.multiline.lua` |  |
| `constant.character.escape.lua` |  |
| `constant.character.escape.byte.lua` |  |
| `constant.character.escape.unicode.lua` |  |
| `invalid.illegal.character.escape.lua` |  |
| `punctuation.definition.comment.lua` |  |
| `comment.line.double-dash.lua` |  |
| `punctuation.definition.comment.begin.lua` |  |
| `punctuation.definition.comment.end.lua` |  |
| `comment.block.lua` |  |
| `keyword.control.goto.lua` |  |
| `string.tag.lua` |  |
| `punctuation.section.embedded.begin.lua` |  |
| `punctuation.section.embedded.end.lua` |  |
| `variable.language.self.lua` |  |
| `support.function.lua` |  |
| `support.function.library.lua` |  |
| `keyword.operator.lua` |  |
| `variable.other.lua` |  |
## Semantic Tokens
Preview in `Dark+` of VSCode
| semantic token | fallen syntax token | preview |
| :---- | :---- | :---- |
| `namespace.static` | `support.function.lua` |  |
| `namespace.readonly` | `constant.language.lua` |  |
| `namespace.deprecated` | `entity.name.label` |  |
| `parameter.declaration` | `variable.parameter` |  |
| `property.declaration` | `entity.other.attribute` |  |
| `variable` | `variable.other.lua` |  |
| `interface.declaration` | `entity.name.function.lua` |  |
|