nvim-treesitter/queries/lalrpop/highlights.scm

61 lines
801 B
Scheme
Raw Normal View History

[
2022-11-21 15:32:29 +02:00
"enum"
"extern"
"grammar"
"match"
"type"
"pub"
] @keyword
[
2022-11-21 15:32:29 +02:00
"match"
"else"
] @conditional
[
"+"
"*"
"?"
; TODO: inaccessible node
; =>
"=>@L"
"=>@R"
] @operator
(grammar_type_params
2022-11-21 15:32:29 +02:00
["<" ">"] @punctuation.bracket)
(symbol
2022-11-21 15:32:29 +02:00
["<" ">"] @punctuation.bracket)
(binding_symbol
2022-11-21 15:32:29 +02:00
["<" ">"] @punctuation.bracket)
(binding_symbol
2022-11-21 15:32:29 +02:00
name: (identifier) @parameter)
(bare_symbol
2022-11-21 15:32:29 +02:00
(macro
((macro_id) @type.definition)))
(bare_symbol
2022-11-21 15:32:29 +02:00
(identifier) @type.definition)
(nonterminal_name
2022-11-21 15:32:29 +02:00
(macro_id) @type.definition)
(nonterminal_name
2022-11-21 15:32:29 +02:00
(identifier) @type.definition)
(nonterminal
2022-11-21 15:32:29 +02:00
(type_ref) @type.builtin)
2022-11-21 15:32:29 +02:00
["(" ")" "[" "]"] @punctuation.bracket
2022-11-21 15:32:29 +02:00
[";" ":"] @punctuation.delimiter
2022-11-21 15:32:29 +02:00
(lifetime (identifier) @storageclass)
(string_literal) @string
(regex_literal) @string