summaryrefslogtreecommitdiffstats
path: root/queries/angular/highlights.scm
blob: dc926bb9a9e5f1ccf578f379e54eb2b23175da7b (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
(identifier) @variable
(pipe_sequence "|" @operator)
(string) @string
(number) @number
(pipe_call
  name: (identifier) @function)
(pipe_call
  arguments: (pipe_arguments
               (identifier) @parameter))

(structural_assignment
  operator: (identifier) @keyword)

(member_expression
  property: (identifier) @property)

(call_expression
  function: (identifier) @function)

(call_expression
  function: ((identifier) @function.builtin
    (#eq? @function.builtin "$any")))

[
"let"
"as"
] @keyword

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

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

((identifier) @boolean
  (#any-of? @boolean "true" "false"))
((identifier) @variable.builtin
  (#any-of? @variable.builtin "this" "\$event" "null"))

[
  "-"
  "&&"
  "+"
  "<"
  "<="
  "="
  "=="
  "==="
  "!="
  "!=="
  ">"
  ">="
  "*"
  "/"
  "||"
  "%"
] @operator