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