mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 05:20:00 -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
|
||||
|
||||
(instruction
|
||||
opcode: _ @keyword)
|
||||
(instruction opcode: _ @function.call)
|
||||
|
||||
[ "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)
|
||||
(directive "pindirs" @keyword)
|
||||
(out_target "pindirs" @constant.builtin)
|
||||
(set_target "pindirs" @constant.builtin)
|
||||
(directive "pindirs" @attribute)
|
||||
|
||||
(condition [ "--" "!=" ] @operator)
|
||||
(expression [ "+" "-" "*" "/" "|" "&" "^" "::" ] @operator)
|
||||
(not) @operator
|
||||
|
||||
[ "optional" "opt" "side" "sideset" "side_set" "pin" "gpio" "osre" ] @keyword
|
||||
[ "block" "noblock" "iffull" "ifempty" "rel" ] @keyword
|
||||
(irq_modifiers) @keyword
|
||||
[ (optional) (irq_modifiers) ] @type.qualifier
|
||||
|
||||
[ "block" "noblock" "rel" ] @attribute
|
||||
|
||||
[ "iffull" "ifempty" ] @conditional
|
||||
|
||||
"public" @storageclass
|
||||
|
||||
(integer) @number
|
||||
|
||||
|
|
@ -26,5 +31,4 @@
|
|||
(directive (symbol_def (identifier) @variable))
|
||||
(value (identifier) @variable)
|
||||
|
||||
(directive
|
||||
directive: _ @keyword)
|
||||
(directive directive: _ @preproc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue