aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/spicedb/highlights.scm
blob: 63c939551ff04713f054f5a149d29d1e9c7c389b (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
; highlights.scm

[
  "definition"
  "caveat"
  "permission"
  "relation"
  "nil"
] @keyword

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

[
  "("
  ")"
  "{"
  "}"
] @punctuation.bracket

[
  "|"
  "+"
  "-"
  "&"
  "#"
  "->"
  "="
] @operator
("with") @keyword.operator

[
  "nil"
  "*"
] @constant.builtin

(comment) @comment
(type_identifier) @type
(cel_type_identifier) @type
(cel_variable_identifier) @variable.parameter
(field_identifier) @variable.other.member
[
  (func_identifier)
  (method_identifier)
] @function.method