From df213757f80e48498dfb5ea48de678c296af0f69 Mon Sep 17 00:00:00 2001 From: Matthew Toohey Date: Thu, 23 Feb 2023 22:37:18 -0500 Subject: [PATCH] fix(queries/nasm): highlight updates --- runtime/queries/nasm/highlights.scm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/runtime/queries/nasm/highlights.scm b/runtime/queries/nasm/highlights.scm index df9219fd7599..5e3cfebe6f5b 100644 --- a/runtime/queries/nasm/highlights.scm +++ b/runtime/queries/nasm/highlights.scm @@ -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) @@ -65,7 +62,7 @@ (#match? @constant.builtin "^__\\?[A-Z_a-z0-9]+\\?__$")) (word) @variable -(preproc_arg) @keyword +(preproc_arg) @keyword.directive [ (preproc_def) @@ -91,7 +88,7 @@ (preproc_pragma) (preproc_line) (preproc_clear) -] @keyword +] @keyword.directive [ (pseudo_instruction_dx) (pseudo_instruction_resx) @@ -99,7 +96,7 @@ (pseudo_instruction_equ_command) (pseudo_instruction_times_prefix) (pseudo_instruction_alignx_macro) -] @keyword +] @function.special [ (assembl_directive_target) (assembl_directive_defaults)