highlights(pioasm): fix captures

This commit is contained in:
ObserverOfTime 2022-10-31 23:29:26 +02:00
parent a1f21606d9
commit c32abac525

View file

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