mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 21:10:15 -04:00
As discussed in PR#5421, capturing `@error` is inconsistent, requiring deep nesting (or priority) in order to correctly have red backgrounds to it. Some queries has this capture, some don't. For consistency purposes, removing all of them is more preferable. For re-enabling error, either add `(ERROR) @error` or `(ERROR _ @error)` to your custom queries.
79 lines
987 B
Scheme
79 lines
987 B
Scheme
"source" @include
|
|
|
|
[
|
|
"mainmenu"
|
|
"config"
|
|
"menuconfig"
|
|
"choice"
|
|
"endchoice"
|
|
"comment"
|
|
"menu"
|
|
"endmenu"
|
|
"prompt"
|
|
"default"
|
|
"range"
|
|
"help"
|
|
(optional)
|
|
(modules)
|
|
] @keyword
|
|
|
|
[
|
|
"if"
|
|
"endif"
|
|
"depends on"
|
|
"select"
|
|
"imply"
|
|
"visible if"
|
|
] @conditional
|
|
|
|
[
|
|
"def_bool"
|
|
"def_tristate"
|
|
] @keyword.function
|
|
|
|
[
|
|
"||"
|
|
"&&"
|
|
"="
|
|
"!="
|
|
"<"
|
|
">"
|
|
"<="
|
|
">="
|
|
"!"
|
|
] @operator
|
|
|
|
[
|
|
"bool"
|
|
"tristate"
|
|
"int"
|
|
"hex"
|
|
"string"
|
|
] @type.builtin
|
|
|
|
[ "(" ")" ] @punctuation.bracket
|
|
|
|
(macro_variable ["$(" ")"] @punctuation.special)
|
|
|
|
(symbol) @variable
|
|
|
|
[
|
|
(prompt)
|
|
(macro_content)
|
|
(text)
|
|
] @string
|
|
|
|
(config name: (symbol) @constant)
|
|
(menuconfig name: (symbol) @constant)
|
|
(choice name: (symbol) @constant)
|
|
|
|
((symbol) @constant
|
|
(#lua-match? @constant "[A-Z0-9]+"))
|
|
|
|
(mainmenu name: (prompt) @text.title)
|
|
(comment_entry name: (prompt) @text.title)
|
|
(menu name: (prompt) @text.title)
|
|
|
|
(source (prompt) @text.uri @string.special)
|
|
|
|
(comment) @comment @spell
|