mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -04:00
highlights(meson): fix captures
Co-Authored-By: ShootingStarDragons <ShootingStarDragons@protonmail.com>
This commit is contained in:
parent
58940a5589
commit
bedc763361
1 changed files with 15 additions and 21 deletions
|
|
@ -2,6 +2,8 @@
|
||||||
(number) @number
|
(number) @number
|
||||||
(bool) @boolean
|
(bool) @boolean
|
||||||
|
|
||||||
|
(identifier) @variable
|
||||||
|
|
||||||
[
|
[
|
||||||
"("
|
"("
|
||||||
")"
|
")"
|
||||||
|
|
@ -9,8 +11,7 @@
|
||||||
"}"
|
"}"
|
||||||
"["
|
"["
|
||||||
"]"
|
"]"
|
||||||
]
|
] @punctuation.bracket
|
||||||
@punctuation.bracket
|
|
||||||
|
|
||||||
[
|
[
|
||||||
":"
|
":"
|
||||||
|
|
@ -38,6 +39,8 @@
|
||||||
">="
|
">="
|
||||||
] @operator
|
] @operator
|
||||||
|
|
||||||
|
"?" @conditional.ternary
|
||||||
|
|
||||||
[
|
[
|
||||||
"if"
|
"if"
|
||||||
"elif"
|
"elif"
|
||||||
|
|
@ -52,30 +55,21 @@
|
||||||
(keyword_continue)
|
(keyword_continue)
|
||||||
] @repeat
|
] @repeat
|
||||||
|
|
||||||
;;; format
|
|
||||||
(string) @string
|
(string) @string
|
||||||
["@"] @punctuation.special
|
|
||||||
|
|
||||||
(experession_statement
|
"@" @punctuation.special
|
||||||
object: (identifier) @variable)
|
|
||||||
|
|
||||||
(normal_command
|
(normal_command
|
||||||
command: (identifier) @function)
|
command: (identifier) @function)
|
||||||
|
|
||||||
(list
|
|
||||||
variable: (identifier) @variable)
|
|
||||||
|
|
||||||
(operatorunit
|
|
||||||
(identifier) @variable)
|
|
||||||
|
|
||||||
(formatunit
|
|
||||||
variable: (identifier) @variable)
|
|
||||||
|
|
||||||
(variableunit
|
|
||||||
value: (identifier) @variable)
|
|
||||||
(pair
|
(pair
|
||||||
key: (identifier) @property)
|
key: (identifier) @property)
|
||||||
(pair
|
|
||||||
value: (identifier) @variable)
|
|
||||||
|
|
||||||
(escape_sequence) @string.escape
|
(escape_sequence) @string.escape
|
||||||
|
|
||||||
|
((identifier) @variable.builtin
|
||||||
|
(#any-of? @variable.builtin
|
||||||
|
"meson"
|
||||||
|
"host_machine"
|
||||||
|
"build_machine"
|
||||||
|
"target_machine"
|
||||||
|
))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue