aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/m68k/highlights.scm
blob: 72a5504d6e3e63b8c5b07600fba723b07a72019e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
(symbol) @variable

(label
  name: (symbol) @label)

[
  (instruction_mnemonic)
  (directive_mnemonic)
] @function.builtin

(include
  (directive_mnemonic) @keyword.import)

(include_bin
  (directive_mnemonic) @keyword.import)

(include_dir
  (directive_mnemonic) @keyword.import)

(size) @attribute

(macro_definition
  name: (symbol) @function.macro)

(macro_call
  name: (symbol) @function.macro)

(string_literal) @string

(path) @string.special.path

[
  (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) @keyword.repeat)

(conditional
  (control_mnemonic) @keyword.conditional)

(comment) @comment @spell

[
  (operator)
  "="
  "#"
] @operator

[
  "."
  ","
  "/"
  "-"
] @punctuation.delimiter

[
  "("
  ")"
  ")+"
] @punctuation.bracket

(section) @module