| 1 | (comment) @comment |
| 2 | |
| 3 | (label) @label |
| 4 | |
| 5 | (preproc_expression) @keyword.directive |
| 6 | |
| 7 | (word) @variable |
| 8 | ((word) @constant |
| 9 | (#match? @constant "^[A-Z_][?A-Z_0-9]+$")) |
| 10 | ((word) @constant.builtin |
| 11 | (#match? @constant.builtin "^__\\?[A-Z_a-z0-9]+\\?__$")) |
| 12 | |
| 13 | [ |
| 14 | (line_here_token) |
| 15 | (section_here_token) |
| 16 | ] @variable.builtin |
| 17 | |
| 18 | (unary_expression |
| 19 | operator: _ @operator) |
| 20 | (binary_expression |
| 21 | operator: _ @operator) |
| 22 | (conditional_expression |
| 23 | "?" @operator |
| 24 | ":" @operator) |
| 25 | |
| 26 | [ |
| 27 | ":" |
| 28 | "," |
| 29 | ] @punctuation.delimiter |
| 30 | |
| 31 | [ |
| 32 | "(" |
| 33 | ")" |
| 34 | "[" |
| 35 | "]" |
| 36 | "{" |
| 37 | "}" |
| 38 | ] @punctuation.bracket |
| 39 | |
| 40 | (instruction_prefix) @keyword |
| 41 | (actual_instruction |
| 42 | instruction: (word) @function) |
| 43 | |
| 44 | (call_syntax_expression |
| 45 | base: (word) @function) |
| 46 | |
| 47 | (size_hint) @type |
| 48 | (struc_declaration |
| 49 | name: (word) @type) |
| 50 | (struc_instance |
| 51 | name: (word) @type) |
| 52 | |
| 53 | (effective_address |
| 54 | hint: _ @type) |
| 55 | (effective_address |
| 56 | segment: _ @constant.builtin) |
| 57 | |
| 58 | (register) @constant.builtin |
| 59 | |
| 60 | (number_literal) @constant.numeric.integer |
| 61 | (string_literal) @string |
| 62 | (float_literal) @constant.numeric.float |
| 63 | (packed_bcd_literal) @constant.numeric.integer |
| 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 |