mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
highlights(lalrpop): fix captures
This commit is contained in:
parent
c44c7e4367
commit
f8c848801a
1 changed files with 31 additions and 28 deletions
|
|
@ -1,57 +1,60 @@
|
||||||
[
|
[
|
||||||
"pub"
|
"enum"
|
||||||
"grammar"
|
"extern"
|
||||||
"match"
|
"grammar"
|
||||||
"extern"
|
"match"
|
||||||
"type"
|
"type"
|
||||||
"enum"
|
"pub"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
"+"
|
"match"
|
||||||
"*"
|
"else"
|
||||||
"?"
|
] @conditional
|
||||||
|
|
||||||
|
[
|
||||||
|
"+"
|
||||||
|
"*"
|
||||||
|
"?"
|
||||||
|
; TODO: inaccessible node
|
||||||
|
; =>
|
||||||
|
"=>@L"
|
||||||
|
"=>@R"
|
||||||
] @operator
|
] @operator
|
||||||
|
|
||||||
(grammar_type_params
|
(grammar_type_params
|
||||||
"<" @punctuation.bracket
|
["<" ">"] @punctuation.bracket)
|
||||||
">" @punctuation.bracket)
|
|
||||||
|
|
||||||
(symbol
|
(symbol
|
||||||
"<" @punctuation.bracket
|
["<" ">"] @punctuation.bracket)
|
||||||
">" @punctuation.bracket)
|
|
||||||
|
|
||||||
(binding_symbol
|
(binding_symbol
|
||||||
"<" @punctuation.bracket
|
["<" ">"] @punctuation.bracket)
|
||||||
">" @punctuation.bracket)
|
|
||||||
|
|
||||||
(binding_symbol
|
(binding_symbol
|
||||||
name: (identifier) @parameter)
|
name: (identifier) @parameter)
|
||||||
|
|
||||||
(bare_symbol
|
(bare_symbol
|
||||||
(macro
|
(macro
|
||||||
((macro_id) @function)))
|
((macro_id) @type.definition)))
|
||||||
|
|
||||||
(bare_symbol
|
(bare_symbol
|
||||||
(identifier) @function)
|
(identifier) @type.definition)
|
||||||
|
|
||||||
(nonterminal_name
|
(nonterminal_name
|
||||||
(macro_id) @function)
|
(macro_id) @type.definition)
|
||||||
|
|
||||||
(nonterminal_name
|
(nonterminal_name
|
||||||
(identifier) @function)
|
(identifier) @type.definition)
|
||||||
|
|
||||||
(nonterminal
|
(nonterminal
|
||||||
(type_ref) @type)
|
(type_ref) @type.builtin)
|
||||||
|
|
||||||
"(" @punctuation.bracket
|
["(" ")" "[" "]"] @punctuation.bracket
|
||||||
")" @punctuation.bracket
|
|
||||||
"[" @punctuation.bracket
|
|
||||||
"]" @punctuation.bracket
|
|
||||||
|
|
||||||
";" @punctuation.delimiter
|
[";" ":"] @punctuation.delimiter
|
||||||
|
|
||||||
(lifetime (identifier) @label)
|
(lifetime (identifier) @storageclass)
|
||||||
|
|
||||||
(string_literal) @string
|
(string_literal) @string
|
||||||
(regex_literal) @string
|
(regex_literal) @string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue