mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
highlights(pioasm): fix captures
This commit is contained in:
parent
a1f21606d9
commit
c32abac525
1 changed files with 14 additions and 10 deletions
|
|
@ -4,21 +4,26 @@
|
||||||
|
|
||||||
(string) @string
|
(string) @string
|
||||||
|
|
||||||
(instruction
|
(instruction opcode: _ @function.call)
|
||||||
opcode: _ @keyword)
|
|
||||||
|
|
||||||
[ "pins" "x" "y" "null" "isr" "osr" "status" "pc" "exec" ] @variable.builtin
|
[ "pins" "x" "y" "null" "isr" "osr" "osre" "status" "pc" "exec" ] @constant.builtin
|
||||||
|
(wait_source [ "irq" "gpio" "pin" ] @constant.builtin)
|
||||||
|
|
||||||
(out_target "pindirs" @variable.builtin)
|
(out_target "pindirs" @constant.builtin)
|
||||||
(directive "pindirs" @keyword)
|
(set_target "pindirs" @constant.builtin)
|
||||||
|
(directive "pindirs" @attribute)
|
||||||
|
|
||||||
(condition [ "--" "!=" ] @operator)
|
(condition [ "--" "!=" ] @operator)
|
||||||
(expression [ "+" "-" "*" "/" "|" "&" "^" "::" ] @operator)
|
(expression [ "+" "-" "*" "/" "|" "&" "^" "::" ] @operator)
|
||||||
(not) @operator
|
(not) @operator
|
||||||
|
|
||||||
[ "optional" "opt" "side" "sideset" "side_set" "pin" "gpio" "osre" ] @keyword
|
[ (optional) (irq_modifiers) ] @type.qualifier
|
||||||
[ "block" "noblock" "iffull" "ifempty" "rel" ] @keyword
|
|
||||||
(irq_modifiers) @keyword
|
[ "block" "noblock" "rel" ] @attribute
|
||||||
|
|
||||||
|
[ "iffull" "ifempty" ] @conditional
|
||||||
|
|
||||||
|
"public" @storageclass
|
||||||
|
|
||||||
(integer) @number
|
(integer) @number
|
||||||
|
|
||||||
|
|
@ -26,5 +31,4 @@
|
||||||
(directive (symbol_def (identifier) @variable))
|
(directive (symbol_def (identifier) @variable))
|
||||||
(value (identifier) @variable)
|
(value (identifier) @variable)
|
||||||
|
|
||||||
(directive
|
(directive directive: _ @preproc)
|
||||||
directive: _ @keyword)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue