diff options
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/queries/t32/highlights.scm | 10 | ||||
| -rw-r--r-- | runtime/queries/t32/locals.scm | 4 |
2 files changed, 9 insertions, 5 deletions
diff --git a/runtime/queries/t32/highlights.scm b/runtime/queries/t32/highlights.scm index 83e8e19dd..1835bf3fe 100644 --- a/runtime/queries/t32/highlights.scm +++ b/runtime/queries/t32/highlights.scm @@ -102,8 +102,6 @@ (path) @string.special.path -(symbol) @string.special.symbol - [ (character) (hll_char_literal) @@ -159,7 +157,7 @@ ; Variables, constants and labels (macro) @variable.builtin -(trace32_hll_variable) @variable.builtin +(symbol) @variable (argument_list (identifier) @constant.builtin) @@ -168,6 +166,12 @@ (identifier) @constant.builtin) (#lua-match? @constant.builtin "^[%%/][%l%u][%l%u%d.]*$")) +((symbol) @constant + (#lua-match? @constant "^\\\\\\\\\\\\[^\\\\]*(\\\\\\\\[^\\\\]*)?(\\\\[^\\\\]*)?$")) + +((symbol) @constant + (#lua-match? @constant "^\\\\\\\\[^\\\\]*(\\\\[^\\\\]*)?$")) + ((command_expression command: (identifier) @keyword arguments: (argument_list diff --git a/runtime/queries/t32/locals.scm b/runtime/queries/t32/locals.scm index 91bf7660e..433a01e8f 100644 --- a/runtime/queries/t32/locals.scm +++ b/runtime/queries/t32/locals.scm @@ -13,7 +13,7 @@ (command_expression command: (identifier) arguments: (argument_list - declarator: (trace32_hll_variable) @local.definition.var)) + declarator: (symbol) @local.definition.var)) ; Function definitions (subroutine_block @@ -32,5 +32,5 @@ [ (macro) - (trace32_hll_variable) + (symbol) ] @local.reference |
