mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,16 +1,21 @@
|
|||
(match key: _ @keyword)
|
||||
(match
|
||||
key: _ @keyword)
|
||||
|
||||
(assignment key: _ @property)
|
||||
(assignment
|
||||
key: _ @property)
|
||||
|
||||
(value) @string
|
||||
|
||||
; NOTE: higher priorities override bash highlights
|
||||
((fmt_sub
|
||||
.
|
||||
_ @character.special)
|
||||
(#set! "priority" 101))
|
||||
|
||||
((fmt_sub . _ @character.special)
|
||||
(#set! "priority" 101))
|
||||
|
||||
((var_sub . _ @variable.builtin)
|
||||
(#set! "priority" 101))
|
||||
((var_sub
|
||||
.
|
||||
_ @variable.builtin)
|
||||
(#set! "priority" 101))
|
||||
|
||||
[
|
||||
(system_const)
|
||||
|
|
@ -21,21 +26,24 @@
|
|||
] @attribute
|
||||
|
||||
((attribute) @attribute
|
||||
(#set! "priority" 101))
|
||||
(#set! "priority" 101))
|
||||
|
||||
((env_var) @constant
|
||||
(#set! "priority" 101))
|
||||
(#set! "priority" 101))
|
||||
|
||||
((pattern) @string.special
|
||||
(#set! "priority" 101))
|
||||
(#set! "priority" 101))
|
||||
|
||||
([ "\\\"" (c_escape) ] @string.escape
|
||||
(#set! "priority" 101))
|
||||
([
|
||||
"\\\""
|
||||
(c_escape)
|
||||
] @string.escape
|
||||
(#set! "priority" 101))
|
||||
|
||||
(octal) @number
|
||||
|
||||
((number) @number
|
||||
(#set! "priority" 101))
|
||||
(#set! "priority" 101))
|
||||
|
||||
[
|
||||
(match_op)
|
||||
|
|
@ -43,11 +51,17 @@
|
|||
] @operator
|
||||
|
||||
("+" @punctuation.special
|
||||
(#set! "priority" 101))
|
||||
(#set! "priority" 101))
|
||||
|
||||
([ "{" "}" ] @punctuation.bracket
|
||||
(#set! "priority" 101))
|
||||
([
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
(#set! "priority" 101))
|
||||
|
||||
[ "," (linebreak) ] @punctuation.delimiter
|
||||
[
|
||||
","
|
||||
(linebreak)
|
||||
] @punctuation.delimiter
|
||||
|
||||
(comment) @comment @spell
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((match
|
||||
key: "PROGRAM"
|
||||
(value (content) @injection.content))
|
||||
(#set! injection.language "bash"))
|
||||
key: "PROGRAM"
|
||||
(value
|
||||
(content) @injection.content))
|
||||
(#set! injection.language "bash"))
|
||||
|
||||
((assignment
|
||||
key: "RUN"
|
||||
(value (content) @injection.content))
|
||||
(#set! injection.language "bash"))
|
||||
key: "RUN"
|
||||
(value
|
||||
(content) @injection.content))
|
||||
(#set! injection.language "bash"))
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
;; labels
|
||||
|
||||
; labels
|
||||
(assignment
|
||||
key: "LABEL"
|
||||
(value (content) @local.definition))
|
||||
(value
|
||||
(content) @local.definition))
|
||||
|
||||
(assignment
|
||||
key: "GOTO"
|
||||
(value (content) @local.reference))
|
||||
|
||||
;; env vars
|
||||
(value
|
||||
(content) @local.reference))
|
||||
|
||||
; env vars
|
||||
(assignment
|
||||
key: "ENV"
|
||||
(env_var) @local.definition.var)
|
||||
|
|
@ -18,10 +18,10 @@
|
|||
key: "ENV"
|
||||
(env_var) @local.reference)
|
||||
|
||||
(var_sub (env_var) @local.reference)
|
||||
|
||||
;; misc
|
||||
(var_sub
|
||||
(env_var) @local.reference)
|
||||
|
||||
; misc
|
||||
[
|
||||
(attribute)
|
||||
(kernel_param)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue