Skip to content

Commit

Permalink
fix(queries/nasm): highlight updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mtoohey31 committed Feb 24, 2023
1 parent a7a526e commit df21375
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions runtime/queries/nasm/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@

(label) @label

(preproc_expression) @keyword.directive

[
(preproc_expression)
(line_here_token)
(section_here_token)
] @variable.builtin
(preproc_expression
"]" @variable.builtin)
(preproc_expression
"}" @variable.builtin)

(unary_expression
operator: _ @operator)
Expand Down Expand Up @@ -65,7 +62,7 @@
(#match? @constant.builtin "^__\\?[A-Z_a-z0-9]+\\?__$"))
(word) @variable

(preproc_arg) @keyword
(preproc_arg) @keyword.directive

[
(preproc_def)
Expand All @@ -91,15 +88,15 @@
(preproc_pragma)
(preproc_line)
(preproc_clear)
] @keyword
] @keyword.directive
[
(pseudo_instruction_dx)
(pseudo_instruction_resx)
(pseudo_instruction_incbin_command)
(pseudo_instruction_equ_command)
(pseudo_instruction_times_prefix)
(pseudo_instruction_alignx_macro)
] @keyword
] @function.special
[
(assembl_directive_target)
(assembl_directive_defaults)
Expand Down

0 comments on commit df21375

Please sign in to comment.