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

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

[
  "="
  (condition_negation)
] @operator

; mark the string values for items interpreted as regex as string.regexp
(binary_condition_expression
  (binary_condition_identifier) @_keyword
  (identifier) @string.regexp
  (#any-of? @_keyword "match" "ext" "mime" "name" "path"))

(binary_condition_identifier) @keyword

(unary_condition_identifier) @keyword

(condition_expression
  (binary_condition_expression
    (binary_condition_identifier) @keyword
    (identifier) @number)
  (#eq? @keyword "number"))

(ask) @function.builtin

(string) @string