@@ -1,3 +1,28 @@
1+; Operators in command and conditional HLL expressions
5+(hll_conditional_expression
12+; Keywords, punctuation and operators
17+] @keyword.storage.type
19+"sizeof" @keyword.operator
24+] @keyword.storage.modifier
@@ -28,49 +53,89 @@
31] @operator
68] @operator
40] @punctuation.bracket
77] @punctuation.bracket
46] @punctuation.delimiter
82] @punctuation.delimiter
85+; Strings and others literal types
86+(access_class) @constant.builtin
53 (file_handle)
91 (file_handle)
54− (frequency)
92+ (integer)
55− (time)
93+ (hll_number_literal)
56−] @constant.builtin
94+] @constant.numeric.integer
60 (percentage)
99 (percentage)
61] @constant.numeric.float
101] @constant.numeric.float
63−(integer) @constant.numeric.integer
103+[
65−(character) @constant.character
105+ (hll_string_literal)
67−; Strings
108+(hll_escape_sequence) @constant.character.escape
70(path) @string.special.path
110(path) @string.special.path
72(symbol) @string.special.symbol
111(symbol) @string.special.symbol
116+] @constant.character
119+; Types in HLL expressions
121+ (hll_type_identifier)
122+ (hll_type_descriptor)
125+(hll_type_qualifier) @keyword.storage.modifier
127+(hll_primitive_type) @type.builtin
130+; HLL call expressions
132+ function: (hll_field_expression
133+ field: (hll_field_identifier) @function))
136+ function: (identifier) @function)
76 (command_expression
141 (command_expression
@@ -83,11 +148,13 @@
83 (#match? @keyword.return "^[rR][eE][tT][uU][rR][nN]$")
148 (#match? @keyword.return "^[rR][eE][tT][uU][rR][nN]$")
86; Subroutine calls
152; Subroutine calls
87(subroutine_call_expression
153(subroutine_call_expression
88 command: (identifier) @keyword
154 command: (identifier) @keyword
89 subroutine: (identifier) @function)
155 subroutine: (identifier) @function)
91; Subroutine blocks
158; Subroutine blocks
92(subroutine_block
159(subroutine_block
93 command: (identifier) @keyword
160 command: (identifier) @keyword
@@ -97,15 +164,17 @@
97 label: (identifier) @function
164 label: (identifier) @function
100; Parameter declarations
168; Parameter declarations
101(parameter_declaration
169(parameter_declaration
102 command: (identifier) @keyword
170 command: (identifier) @keyword
103 (identifier)? @constant.builtin
171 (identifier)? @constant.builtin
104 macro: (macro) @variable.parameter)
172 macro: (macro) @variable.parameter)
106; Variables, constants and labels
175; Variables, constants and labels
107−(macro) @variable
176+(macro) @variable.builtin
108−(internal_c_variable) @variable
177+(trace32_hll_variable) @variable.builtin
111 (command_expression
180 (command_expression
@@ -116,17 +185,28 @@
116(labeled_expression
185(labeled_expression
117 label: (identifier) @label)
186 label: (identifier) @label)
189+ (identifier) @constant.builtin)
192+ (identifier) @constant.builtin)
120− (argument_list (identifier) @constant.builtin)
195+ (argument_list (identifier) @constant.builtin)
121− (#match? @constant.builtin "^[%/][a-zA-Z][a-zA-Z0-9.]*$")
196+ (#match? @constant.builtin "^[%/][a-zA-Z][a-zA-Z0-9.]*$")
123(argument_list
198(argument_list
124− (identifier) @constant)
199+ (identifier) @constant.builtin)
126; Commands
202; Commands
127(command_expression command: (identifier) @keyword)
203(command_expression command: (identifier) @keyword)
128(macro_definition command: (identifier) @keyword)
204(macro_definition command: (identifier) @keyword)
207+ function: (identifier) @function.builtin)
130; Control flow
210; Control flow
132 command: (identifier) @keyword.control.conditional.if)
212 command: (identifier) @keyword.control.conditional.if)
@@ -138,8 +218,10 @@
138(repeat_block
218(repeat_block
139 command: (identifier) @keyword.control.loop)
219 command: (identifier) @keyword.control.loop)
142− function: (identifier) @function)
144−(type_identifier) @type
222+; HLL variables
223+(identifier) @variable
224+(hll_field_identifier) @variable.other.member
145(comment) @comment
227(comment) @comment