summaryrefslogtreecommitdiff
path: root/runtime/queries/openscad/highlights.scm
blob: c06738e855e9598cda969f4b1a172f6d1a15a049 (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
(number) @constant.numeric
(string) @string
(boolean) @constant.builtin.boolean
(include_path) @string.special.path

(parameters_declaration (identifier) @variable.parameter)
(function_declaration name: (identifier) @function)

(function_call function: (identifier) @function)
(module_call name: (identifier) @function)

(identifier) @variable
(special_variable) @variable.builtin

[
  "function"
  "let"
  "assign"
] @keyword

[
  "for"
  "each"
  "intersection_for"
] @keyword.control.repeat

[
  "if"
] @keyword.control.conditional

[
  "module"
  "use"
  "include"
] @keyword.control.import

[
  "||"
  "&&"
  "=="
  "!="
  "<"
  ">"
  "<="
  ">="
  "+"
  "-"
  "*"
  "/"
  "%"
  "^"
  "?"
  "!"
  ":"
] @operator

[
  ";"
  ","
  "."
] @punctuation.delimiter

(comment) @comment