mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
34
runtime/queries/pioasm/highlights.scm
Normal file
34
runtime/queries/pioasm/highlights.scm
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[ (line_comment) (block_comment) ] @comment
|
||||
|
||||
(label_decl) @label
|
||||
|
||||
(string) @string
|
||||
|
||||
(instruction opcode: _ @function.call)
|
||||
|
||||
[ "pins" "x" "y" "null" "isr" "osr" "osre" "status" "pc" "exec" ] @constant.builtin
|
||||
(wait_source [ "irq" "gpio" "pin" ] @constant.builtin)
|
||||
|
||||
(out_target "pindirs" @constant.builtin)
|
||||
(set_target "pindirs" @constant.builtin)
|
||||
(directive "pindirs" @attribute)
|
||||
|
||||
(condition [ "--" "!=" ] @operator)
|
||||
(expression [ "+" "-" "*" "/" "|" "&" "^" "::" ] @operator)
|
||||
(not) @operator
|
||||
|
||||
[ (optional) (irq_modifiers) ] @type.qualifier
|
||||
|
||||
[ "block" "noblock" "rel" ] @attribute
|
||||
|
||||
[ "iffull" "ifempty" ] @conditional
|
||||
|
||||
"public" @storageclass
|
||||
|
||||
(integer) @number
|
||||
|
||||
(directive (identifier) @variable)
|
||||
(directive (symbol_def (identifier) @variable))
|
||||
(value (identifier) @variable)
|
||||
|
||||
(directive directive: _ @preproc)
|
||||
15
runtime/queries/pioasm/injections.scm
Normal file
15
runtime/queries/pioasm/injections.scm
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
([
|
||||
(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"))
|
||||
|
||||
(code_block
|
||||
(code_block_language) @injection.language
|
||||
(code_block_body) @injection.content)
|
||||
Loading…
Add table
Add a link
Reference in a new issue