@@ -0,0 +1,126 @@
1+(comment) @comment
2+
3+(label) @label
4+
5+(preproc_expression) @keyword.directive
6+
7+[
8+ (line_here_token)
9+ (section_here_token)
10+] @variable.builtin
11+
12+(unary_expression
13+ operator: _ @operator)
14+(binary_expression
15+ operator: _ @operator)
16+(conditional_expression
17+ "?" @operator
18+ ":" @operator)
19+
20+[
21+ ":"
22+ ","
23+] @punctuation.delimiter
24+
25+[
26+ "("
27+ ")"
28+ "["
29+ "]"
30+ "{"
31+ "}"
32+] @punctuation.bracket
33+
34+(instruction_prefix) @keyword
35+(actual_instruction
36+ instruction: (word) @function)
37+
38+(call_syntax_expression
39+ base: (word) @function)
40+
41+(size_hint) @type
42+(struc_declaration
43+ name: (word) @type)
44+(struc_instance
45+ name: (word) @type)
46+
47+(effective_address
48+ hint: _ @type)
49+(effective_address
50+ segment: _ @constant.builtin)
51+
52+(register) @constant.builtin
53+
54+(number_literal) @constant.numeric.integer
55+(string_literal) @string
56+(float_literal) @constant.numeric.float
57+(packed_bcd_literal) @constant.numeric.integer
58+
59+((word) @constant
60+ (#match? @constant "^[A-Z_][?A-Z_0-9]+$"))
61+((word) @constant.builtin
62+ (#match? @constant.builtin "^__\\?[A-Z_a-z0-9]+\\?__$"))
63+(word) @variable
64+
65+(preproc_arg) @keyword.directive
66+
67+[
68+ (preproc_def)
69+ (preproc_function_def)
70+ (preproc_undef)
71+ (preproc_alias)
72+ (preproc_multiline_macro)
73+ (preproc_multiline_unmacro)
74+ (preproc_if)
75+ (preproc_rotate)
76+ (preproc_rep_loop)
77+ (preproc_include)
78+ (preproc_pathsearch)
79+ (preproc_depend)
80+ (preproc_use)
81+ (preproc_push)
82+ (preproc_pop)
83+ (preproc_repl)
84+ (preproc_arg)
85+ (preproc_stacksize)
86+ (preproc_local)
87+ (preproc_reporting)
88+ (preproc_pragma)
89+ (preproc_line)
90+ (preproc_clear)
91+] @keyword.directive
92+[
93+ (pseudo_instruction_dx)
94+ (pseudo_instruction_resx)
95+ (pseudo_instruction_incbin_command)
96+ (pseudo_instruction_equ_command)
97+ (pseudo_instruction_times_prefix)
98+ (pseudo_instruction_alignx_macro)
99+] @function.special
100+[
101+ (assembl_directive_target)
102+ (assembl_directive_defaults)
103+ (assembl_directive_sections)
104+ (assembl_directive_absolute)
105+ (assembl_directive_symbols)
106+ (assembl_directive_common)
107+ (assembl_directive_symbolfixes)
108+ (assembl_directive_cpu)
109+ (assembl_directive_floathandling)
110+ (assembl_directive_org)
111+ (assembl_directive_sectalign)
112+
113+ (assembl_directive_primitive_target)
114+ (assembl_directive_primitive_defaults)
115+ (assembl_directive_primitive_sections)
116+ (assembl_directive_primitive_absolute)
117+ (assembl_directive_primitive_symbols)
118+ (assembl_directive_primitive_common)
119+ (assembl_directive_primitive_symbolfixes)
120+ (assembl_directive_primitive_cpu)
121+ (assembl_directive_primitive_floathandling)
122+ (assembl_directive_primitive_org)
123+ (assembl_directive_primitive_sectalign)
124+ (assembl_directive_primitive_warning)
125+ (assembl_directive_primitive_map)
126+] @keyword