aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/typoscript/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/typoscript/highlights.scm')
-rw-r--r--runtime/queries/typoscript/highlights.scm47
1 files changed, 47 insertions, 0 deletions
diff --git a/runtime/queries/typoscript/highlights.scm b/runtime/queries/typoscript/highlights.scm
new file mode 100644
index 000000000..63327f178
--- /dev/null
+++ b/runtime/queries/typoscript/highlights.scm
@@ -0,0 +1,47 @@
+(identifier) @variable.member
+
+(constant) @constant
+
+(modifier_function) @function
+
+(modifier_predefined) @function.builtin
+
+[
+ (condition)
+ (condition_end)
+ (condition_else)
+] @keyword.conditional
+
+(cobject) @type.builtin
+
+[
+ "@import"
+ "INCLUDE_TYPOSCRIPT"
+] @keyword.import
+
+[
+ (comment)
+ (single_line_comment)
+] @comment @spell
+
+[
+ (string)
+ (multiline_value)
+] @string
+
+[
+ "="
+ ">"
+ "<"
+ ":="
+ "=<"
+ (condition_bool)
+] @operator
+
+"," @punctuation.delimiter
+
+[
+ "("
+ ")"
+ (block_punctuation)
+] @punctuation.bracket