mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,9 +1,9 @@
|
|||
[
|
||||
(normal_command)
|
||||
(if_condition)
|
||||
(if_command)
|
||||
(else_command)
|
||||
(elseif_command)
|
||||
(foreach_command)
|
||||
(list)
|
||||
(normal_command)
|
||||
(if_condition)
|
||||
(if_command)
|
||||
(else_command)
|
||||
(elseif_command)
|
||||
(foreach_command)
|
||||
(list)
|
||||
] @fold
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
(comment) @comment @spell
|
||||
|
||||
(number) @number
|
||||
|
||||
(bool) @boolean
|
||||
|
||||
(identifier) @variable
|
||||
|
|
@ -40,7 +42,10 @@
|
|||
] @operator
|
||||
|
||||
(ternaryoperator
|
||||
["?" ":"] @keyword.conditional.ternary)
|
||||
[
|
||||
"?"
|
||||
":"
|
||||
] @keyword.conditional.ternary)
|
||||
|
||||
[
|
||||
"if"
|
||||
|
|
@ -62,15 +67,11 @@
|
|||
|
||||
(normal_command
|
||||
command: (identifier) @function)
|
||||
|
||||
(pair
|
||||
key: (identifier) @property)
|
||||
|
||||
(escape_sequence) @string.escape
|
||||
|
||||
((identifier) @variable.builtin
|
||||
(#any-of? @variable.builtin
|
||||
"meson"
|
||||
"host_machine"
|
||||
"build_machine"
|
||||
"target_machine"
|
||||
))
|
||||
(#any-of? @variable.builtin "meson" "host_machine" "build_machine" "target_machine"))
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
(#set! injection.language "comment"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue