chore: query formatting

This commit is contained in:
Pham Huy Hoang 2024-01-06 15:05:50 +09:00 committed by Christian Clason
parent 79975d6557
commit 57a8acf0c4
674 changed files with 18466 additions and 12648 deletions

View file

@ -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)

View file

@ -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