mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,34 +1,93 @@
|
|||
[ (line_comment) (block_comment) ] @comment @spell
|
||||
[
|
||||
(line_comment)
|
||||
(block_comment)
|
||||
] @comment @spell
|
||||
|
||||
(label_decl) @label
|
||||
|
||||
(string) @string
|
||||
|
||||
(instruction opcode: _ @function.call)
|
||||
(instruction
|
||||
opcode: _ @function.call)
|
||||
|
||||
[ "pins" "x" "y" "null" "isr" "osr" "osre" "status" "pc" "exec" ] @constant.builtin
|
||||
(wait_source [ "irq" "gpio" "pin" ] @constant.builtin)
|
||||
[
|
||||
"pins"
|
||||
"x"
|
||||
"y"
|
||||
"null"
|
||||
"isr"
|
||||
"osr"
|
||||
"osre"
|
||||
"status"
|
||||
"pc"
|
||||
"exec"
|
||||
] @constant.builtin
|
||||
|
||||
(out_target "pindirs" @constant.builtin)
|
||||
(set_target "pindirs" @constant.builtin)
|
||||
(directive "pindirs" @attribute)
|
||||
(wait_source
|
||||
[
|
||||
"irq"
|
||||
"gpio"
|
||||
"pin"
|
||||
] @constant.builtin)
|
||||
|
||||
(out_target
|
||||
"pindirs" @constant.builtin)
|
||||
|
||||
(set_target
|
||||
"pindirs" @constant.builtin)
|
||||
|
||||
(directive
|
||||
"pindirs" @attribute)
|
||||
|
||||
(condition
|
||||
[
|
||||
"--"
|
||||
"!="
|
||||
] @operator)
|
||||
|
||||
(expression
|
||||
[
|
||||
"+"
|
||||
"-"
|
||||
"*"
|
||||
"/"
|
||||
"|"
|
||||
"&"
|
||||
"^"
|
||||
"::"
|
||||
] @operator)
|
||||
|
||||
(condition [ "--" "!=" ] @operator)
|
||||
(expression [ "+" "-" "*" "/" "|" "&" "^" "::" ] @operator)
|
||||
(not) @operator
|
||||
|
||||
[ (optional) (irq_modifiers) ] @type.qualifier
|
||||
[
|
||||
(optional)
|
||||
(irq_modifiers)
|
||||
] @type.qualifier
|
||||
|
||||
[ "block" "noblock" "rel" ] @attribute
|
||||
[
|
||||
"block"
|
||||
"noblock"
|
||||
"rel"
|
||||
] @attribute
|
||||
|
||||
[ "iffull" "ifempty" ] @keyword.conditional
|
||||
[
|
||||
"iffull"
|
||||
"ifempty"
|
||||
] @keyword.conditional
|
||||
|
||||
"public" @keyword.storage
|
||||
|
||||
(integer) @number
|
||||
|
||||
(directive (identifier) @variable)
|
||||
(directive (symbol_def (identifier) @variable))
|
||||
(value (identifier) @variable)
|
||||
(directive
|
||||
(identifier) @variable)
|
||||
|
||||
(directive directive: _ @keyword.directive)
|
||||
(directive
|
||||
(symbol_def
|
||||
(identifier) @variable))
|
||||
|
||||
(value
|
||||
(identifier) @variable)
|
||||
|
||||
(directive
|
||||
directive: _ @keyword.directive)
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
([
|
||||
(line_comment)
|
||||
(block_comment)
|
||||
] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
([
|
||||
(line_comment)
|
||||
(block_comment)
|
||||
] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((code_block
|
||||
(code_block_language) @_language
|
||||
(code_block_body) @injection.content)
|
||||
(#eq? @_language "c-sdk")
|
||||
(#set! injection.language "c"))
|
||||
(#eq? @_language "c-sdk")
|
||||
(#set! injection.language "c"))
|
||||
|
||||
(code_block
|
||||
(code_block_language) @injection.language
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue