aboutsummaryrefslogtreecommitdiffstats
path: root/queries/typoscript/highlights.scm
diff options
context:
space:
mode:
authorTeddytrombone <github@tmk-stgeorgen.at>2023-10-24 09:48:33 +0200
committerGitHub <noreply@github.com>2023-10-24 07:48:33 +0000
commit16af5ef490ff37407cc4241d7b8b8798d5b3a726 (patch)
tree76a164dc751f46e5f5cb38a724ce55957b5786e2 /queries/typoscript/highlights.scm
parentUpdate parsers: liquidsoap, wing (#5568) (diff)
downloadnvim-treesitter-16af5ef490ff37407cc4241d7b8b8798d5b3a726.tar
nvim-treesitter-16af5ef490ff37407cc4241d7b8b8798d5b3a726.tar.gz
nvim-treesitter-16af5ef490ff37407cc4241d7b8b8798d5b3a726.tar.bz2
nvim-treesitter-16af5ef490ff37407cc4241d7b8b8798d5b3a726.tar.lz
nvim-treesitter-16af5ef490ff37407cc4241d7b8b8798d5b3a726.tar.xz
nvim-treesitter-16af5ef490ff37407cc4241d7b8b8798d5b3a726.tar.zst
nvim-treesitter-16af5ef490ff37407cc4241d7b8b8798d5b3a726.zip
feat(typoscript) Added parser and queries for TypoScript (#5564)
* Added configuration for TypoScript * Removed duplicated code; Applied folding suggestion * Applied suggestions * Update queries/typoscript/highlights.scm Co-authored-by: ObserverOfTime <chronobserver@disroot.org> --------- Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
Diffstat (limited to 'queries/typoscript/highlights.scm')
-rw-r--r--queries/typoscript/highlights.scm46
1 files changed, 46 insertions, 0 deletions
diff --git a/queries/typoscript/highlights.scm b/queries/typoscript/highlights.scm
new file mode 100644
index 000000000..9ce80c680
--- /dev/null
+++ b/queries/typoscript/highlights.scm
@@ -0,0 +1,46 @@
+(identifier) @field
+
+(constant) @constant
+
+(modifier_function) @function
+(modifier_predefined) @function.builtin
+
+[
+ (condition)
+ (condition_end)
+ (condition_else)
+] @conditional
+
+(cobject) @type.builtin
+
+[
+ "@import"
+ "INCLUDE_TYPOSCRIPT"
+] @include
+
+[
+ (comment)
+ (single_line_comment)
+] @comment @spell
+
+[
+ (string)
+ (multiline_value)
+] @string
+
+[
+ "="
+ ">"
+ "<"
+ ":="
+ "=<"
+ (condition_bool)
+] @operator
+
+"," @punctuation.delimiter
+
+[
+ "("
+ ")"
+ (block_punctuation)
+ ] @punctuation.bracket