mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
feat(kconfig): adapt queries to parser changes
This commit is contained in:
parent
2a75d8065c
commit
4d5a8e7006
3 changed files with 16 additions and 13 deletions
|
|
@ -70,33 +70,36 @@
|
|||
(symbol) @variable
|
||||
|
||||
[
|
||||
(prompt)
|
||||
(string)
|
||||
(macro_content)
|
||||
(text)
|
||||
] @string
|
||||
|
||||
(config
|
||||
name: (symbol) @constant)
|
||||
name: (name
|
||||
(symbol) @constant))
|
||||
|
||||
(menuconfig
|
||||
name: (symbol) @constant)
|
||||
name: (name
|
||||
(symbol) @constant))
|
||||
|
||||
(choice
|
||||
name: (symbol) @constant)
|
||||
name: (name
|
||||
(symbol) @constant))
|
||||
|
||||
((symbol) @constant
|
||||
(#lua-match? @constant "[A-Z0-9]+"))
|
||||
|
||||
(mainmenu
|
||||
name: (prompt) @markup.heading)
|
||||
name: (string) @markup.heading)
|
||||
|
||||
(comment_entry
|
||||
name: (prompt) @markup.heading)
|
||||
name: (string) @markup.heading)
|
||||
|
||||
(menu
|
||||
name: (prompt) @markup.heading)
|
||||
name: (string) @markup.heading)
|
||||
|
||||
(source
|
||||
(prompt) @string.special.url)
|
||||
(string) @string.special.url)
|
||||
|
||||
(comment) @comment @spell
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[
|
||||
(symbol)
|
||||
(prompt)
|
||||
(string)
|
||||
] @local.reference
|
||||
|
||||
[
|
||||
|
|
@ -13,12 +13,12 @@
|
|||
] @local.scope
|
||||
|
||||
(type_definition
|
||||
(prompt) @local.definition.var)
|
||||
(string) @local.definition.var)
|
||||
|
||||
(type_definition
|
||||
(input_prompt
|
||||
(prompt) @local.definition.var))
|
||||
(string) @local.definition.var))
|
||||
|
||||
(type_definition_default
|
||||
(expression
|
||||
(prompt) @local.definition.var))
|
||||
(string) @local.definition.var))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue