diff options
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/m68k/folds.scm | 1 | ||||
| -rw-r--r-- | queries/m68k/highlights.scm | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/queries/m68k/folds.scm b/queries/m68k/folds.scm new file mode 100644 index 00000000..1dd8eaf1 --- /dev/null +++ b/queries/m68k/folds.scm @@ -0,0 +1 @@ +(element_list) @fold diff --git a/queries/m68k/highlights.scm b/queries/m68k/highlights.scm new file mode 100644 index 00000000..d2791a23 --- /dev/null +++ b/queries/m68k/highlights.scm @@ -0,0 +1,73 @@ +(symbol) @variable + +(label name: (symbol) @constant) + +[ + (instruction_mnemonic) + (directive_mnemonic) +] @function.builtin + +(include (directive_mnemonic) @include) +(include_bin (directive_mnemonic) @include) +(include_dir (directive_mnemonic) @include) + + +(size) @attribute + +(macro_definition name: (symbol) @function.macro) +(macro_call name: (symbol) @function.macro) + +[ + (path) + (string_literal) +] @string + +[ + (decimal_literal) + (hexadecimal_literal) + (octal_literal) + (binary_literal) +] @number + +[ + (reptn) + (carg) + (narg) + (macro_arg) +] @variable.builtin + +[ + (control_mnemonic) + (address_register) + (data_register) + (float_register) + (named_register) +] @keyword + +(repeat (control_mnemonic) @repeat) +(conditional (control_mnemonic) @conditional) + +(interpolated (macro_arg) @embedded) + +(comment) @comment + +[ + (operator) + "=" + "#" +] @operator + +[ + "." + "," + "/" + "-" +] @punctuation.delimiter + +[ + "(" + ")" + ")+" +] @punctuation.bracket + +(section) @namespace |
