blob: 4254d04dd01a25147caee0a6b6439c1a534bc65e (
plain) (
blame)
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
|
; Simple tokens ;;;;
(terminal) @string
(special_sequence) @string.special
(integer) @number
(comment) @comment @spell
; Identifiers ;;;;
; Allow different highlighting for specific casings
((identifier) @type
(#lua-match? @type "^%u"))
((identifier) @string.special.symbol
(#lua-match? @string.special.symbol "^%l"))
((identifier) @constant
(#lua-match? @constant "^%u[%u%d_]+$"))
; Punctuation ;;;;
[
";"
","
] @punctuation.delimiter
[
"|"
"*"
"-"
] @operator
"=" @keyword.operator
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
|