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

(atom) @constant

((atom) @boolean
  (#any-of? @boolean "true" "false"))

(functional_notation
  function: (atom) @function.call)

(integer) @number

(float_number) @number.float

(directive_head) @operator

(operator_notation
  operator: _ @operator)

[
  (open)
  (open_ct)
  (close)
  (open_list)
  "|"
  (close_list)
  (open_curly)
  (close_curly)
] @punctuation.bracket

[
  (arg_list_separator)
  (comma)
  (end)
  (list_notation_separator)
] @punctuation.delimiter

(operator_notation
  operator: (semicolon) @punctuation.delimiter)

(double_quoted_list_notation) @string

(variable_term) @variable