1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-27 12:10:06 +08:00
SpaceVim/bundle/nvim-treesitter/queries/pioasm/highlights.scm
2022-04-14 12:01:23 +08:00

31 lines
714 B
Scheme
Vendored

[ (line_comment) (block_comment) ] @comment
(label_decl) @label
(string) @string
(instruction
opcode: _ @keyword)
[ "pins" "x" "y" "null" "isr" "osr" "status" "pc" "exec" ] @variable.builtin
(out_target "pindirs" @variable.builtin)
(directive "pindirs" @keyword)
(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
(integer) @number
(directive (identifier) @variable)
(directive (symbol_def (identifier) @variable))
(value (identifier) @variable)
(directive
directive: _ @keyword)