aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/typoscript/highlights.scm
blob: bc214cba02b0a07b3ee692cc1b38a0ab5275d102 (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
(identifier) @variable.member

(symfony_variable) @variable

(constant) @constant

(symfony_method) @function.method.call

[
  (modifier_function)
  (symfony_function)
] @function.call

[
  (modifier_predefined)
  (symfony_predefined_function)
] @function.builtin

(modifier_parameter) @variable.parameter

(symfony_function_parameter
  (symfony_variable) @variable.parameter)

(symfony_method_parameter
  (symfony_variable) @variable.parameter)

[
  (condition)
  (condition_end)
  (condition_else)
] @keyword.conditional

[
  "@import"
  "INCLUDE_TYPOSCRIPT"
] @keyword.import

(condition_attribute) @tag.attribute

(cobject) @type.builtin

(symfony_built_in_variable) @variable.builtin

(symfony_property) @variable.member

[
  (comment)
  (single_line_comment)
] @comment @spell

[
  (string)
  (multiline_value_content)
  (symfony_string)
] @string

(deletion_line
  ">" @operator)

(copy_line
  "<" @operator)

[
  "="
  "=<"
  ":="
  "?."
  (symfony_condition_operator)
  (condition_bool_legacy)
  (constant_null_coalescing)
] @operator

(symfony_ternary_operator) @keyword.conditional.ternary

((symfony_condition_operator) @keyword.operator
  (#any-of? @keyword.operator
    "and" "or" "xor" "not" "not in" "in" "contains" "starts with" "ends with" "matches"))

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

(symfony_property_access
  "." @operator)

(symfony_method_call
  "." @operator)

[
  "("
  ")"
  "["
  "]"
  (block_punctuation)
] @punctuation.bracket

(condition
  "[" @punctuation.special)

(condition
  "]" @punctuation.special)

(symfony_number) @number

(symfony_boolean) @boolean

(symfony_null) @constant.builtin