2022-04-14 12:01:23 +08:00
|
|
|
[ (line_comment) (block_comment) ] @comment
|
|
|
|
|
|
|
|
(label_decl) @label
|
|
|
|
|
|
|
|
(string) @string
|
|
|
|
|
2023-06-18 14:17:38 +08:00
|
|
|
(instruction opcode: _ @function.call)
|
2022-04-14 12:01:23 +08:00
|
|
|
|
2023-06-18 14:17:38 +08:00
|
|
|
[ "pins" "x" "y" "null" "isr" "osr" "osre" "status" "pc" "exec" ] @constant.builtin
|
|
|
|
(wait_source [ "irq" "gpio" "pin" ] @constant.builtin)
|
2022-04-14 12:01:23 +08:00
|
|
|
|
2023-06-18 14:17:38 +08:00
|
|
|
(out_target "pindirs" @constant.builtin)
|
|
|
|
(set_target "pindirs" @constant.builtin)
|
|
|
|
(directive "pindirs" @attribute)
|
2022-04-14 12:01:23 +08:00
|
|
|
|
|
|
|
(condition [ "--" "!=" ] @operator)
|
|
|
|
(expression [ "+" "-" "*" "/" "|" "&" "^" "::" ] @operator)
|
|
|
|
(not) @operator
|
|
|
|
|
2023-06-18 14:17:38 +08:00
|
|
|
[ (optional) (irq_modifiers) ] @type.qualifier
|
|
|
|
|
|
|
|
[ "block" "noblock" "rel" ] @attribute
|
|
|
|
|
|
|
|
[ "iffull" "ifempty" ] @conditional
|
|
|
|
|
|
|
|
"public" @storageclass
|
2022-04-14 12:01:23 +08:00
|
|
|
|
|
|
|
(integer) @number
|
|
|
|
|
|
|
|
(directive (identifier) @variable)
|
|
|
|
(directive (symbol_def (identifier) @variable))
|
|
|
|
(value (identifier) @variable)
|
|
|
|
|
2023-06-18 14:17:38 +08:00
|
|
|
(directive directive: _ @preproc)
|