blob: 34040dd5fe2ce9613663d49c6ae0e4de7822f37e (
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
|
[
"pub"
"grammar"
"match"
"extern"
"type"
"enum"
] @keyword
[
"+"
"*"
"?"
] @operator
(grammar_type_params
"<" @punctuation.bracket
">" @punctuation.bracket)
(symbol
"<" @punctuation.bracket
">" @punctuation.bracket)
(binding_symbol
"<" @punctuation.bracket
">" @punctuation.bracket)
(binding_symbol
name: (identifier) @parameter)
(bare_symbol
(macro
((macro_id) @function)))
(bare_symbol
(identifier) @function)
(nonterminal_name
(macro_id) @function)
(nonterminal_name
(identifier) @function)
(nonterminal
(type_ref) @type)
"(" @punctuation.bracket
")" @punctuation.bracket
"[" @punctuation.bracket
"]" @punctuation.bracket
";" @punctuation.delimiter
(lifetime (identifier) @label)
(string_literal) @string
(regex_literal) @string
|