aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/sproto/highlights.scm
blob: cd86ed22db4ca666833e29257c5d930fb72411d8 (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
(comment) @comment @spell

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

"*" @operator

[
  "request"
  "response"
] @keyword

(type_definition
  name: (identifier) @type)

(nested_type_definition
  name: (identifier) @type)

(type_specifier) @type

[
  "integer"
  "boolean"
  "string"
  "binary"
  "double"
] @type.builtin

(protocol_definition
  name: (identifier) @function)

(field_definition
  name: (identifier) @property)

(map_specifier
  key: (identifier) @property)

(integer) @number

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