summaryrefslogtreecommitdiff
path: root/queries/hocon/highlights.scm
blob: 3fb8249a9c7375179e7f59a296166c1ff884aa1e (plain)
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
(comment) @comment

(null) @constant.builtin
[ (true) (false) ] @boolean
(number) @number
(unit) @keyword
(string) @string
(multiline_string) @string
(string (escape_sequence) @string.escape)
(unquoted_string) @string

[ "url"
  "file"
  "classpath"
  "required"
] @keyword

(include "include" @include)

(substitution ["${" "${?" "}"] @punctuation.special)
(substitution (_) @field)

(path (_) @field)
(value [":" "=" "+=" ] @operator)

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

[ "," ] @punctuation.delimiter
(unquoted_path "." @punctuation.delimiter)