aboutsummaryrefslogtreecommitdiffstats
path: root/queries/typst
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-06-12 09:54:30 -0600
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:40 +0200
commit692b051b09935653befdb8f7ba8afdb640adf17b (patch)
tree167162b6b129ae04f68c5735078521a72917c742 /queries/typst
parentfeat(c-family): inherit injections (diff)
downloadnvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.gz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.bz2
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.lz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.xz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.zst
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.zip
feat!: drop modules, general refactor and cleanup
Diffstat (limited to 'queries/typst')
-rw-r--r--queries/typst/folds.scm11
-rw-r--r--queries/typst/highlights.scm131
-rw-r--r--queries/typst/indents.scm12
-rw-r--r--queries/typst/injections.scm6
4 files changed, 0 insertions, 160 deletions
diff --git a/queries/typst/folds.scm b/queries/typst/folds.scm
deleted file mode 100644
index ef0ec7956..000000000
--- a/queries/typst/folds.scm
+++ /dev/null
@@ -1,11 +0,0 @@
-[
- (set)
- (let)
- (show)
- (call)
- (section)
- (for)
- (branch)
- (content)
- (raw_blck)
-] @fold
diff --git a/queries/typst/highlights.scm b/queries/typst/highlights.scm
deleted file mode 100644
index a0dcc1b89..000000000
--- a/queries/typst/highlights.scm
+++ /dev/null
@@ -1,131 +0,0 @@
-; punctuation
-"#" @punctuation.special
-
-[
- ":"
- ";"
- ","
-] @punctuation.delimiter
-
-; TODO: context blocks for "[" "]"?
-[
- "("
- ")"
- "{"
- "}"
- "["
- "]"
-] @punctuation.bracket
-
-; operators
-[
- "-"
- "+"
- "*"
- "/"
- "=="
- "!="
- "<"
- "<="
- ">"
- ">="
- "="
- "in"
- "and"
- "or"
- "not"
-] @operator
-
-; keywords
-[
- "import"
- "include"
-] @keyword.import
-
-[
- "let"
- "set"
- "show"
-] @keyword
-
-; control flow
-[
- "for"
- "while"
- "break"
- "continue"
-] @keyword.repeat
-
-[
- "if"
- "else"
-] @keyword.conditional
-
-; special case: #for (ident) in (expr)
-(for
- "in" @keyword.repeat)
-
-; type literals
-(number) @number
-
-(string) @string
-
-(bool) @boolean
-
-(ident) @constant
-
-; name-value pairs
-(tagged
- field: (ident) @variable.member)
-
-(call
- item: (ident) @function.call)
-
-; text
-(text) @spell
-
-(heading
- "=" @markup.heading.1) @markup.heading.1
-
-(heading
- "==" @markup.heading.2) @markup.heading.2
-
-(heading
- "===" @markup.heading.3) @markup.heading.3
-
-(heading
- "====" @markup.heading.4) @markup.heading.4
-
-(heading
- "=====" @markup.heading.5) @markup.heading.5
-
-(heading
- "======" @markup.heading.6) @markup.heading.6
-
-(strong) @markup.strong
-
-(emph) @markup.italic
-
-(url) @markup.link.url
-
-; code blocks
-(raw_span) @markup.raw
-
-(raw_blck) @markup.raw
-
-(raw_blck
- lang: (ident) @label)
-
-(raw_blck
- (blob) @markup.raw.block)
-
-; refs and labels
-(label) @markup.link.label
-
-(ref) @markup.link
-
-; math
-(math) @markup.math
-
-; comments
-(comment) @comment @spell
diff --git a/queries/typst/indents.scm b/queries/typst/indents.scm
deleted file mode 100644
index d43c586c1..000000000
--- a/queries/typst/indents.scm
+++ /dev/null
@@ -1,12 +0,0 @@
-[
- (set)
- (let)
- (show)
- (call)
-] @indent.begin
-
-[
- "]"
- "}"
- ")"
-] @indent.branch @indent.end
diff --git a/queries/typst/injections.scm b/queries/typst/injections.scm
deleted file mode 100644
index 344c6a308..000000000
--- a/queries/typst/injections.scm
+++ /dev/null
@@ -1,6 +0,0 @@
-((comment) @injection.content
- (#set! injection.language "comment"))
-
-(raw_blck
- (ident) @injection.language
- (blob) @injection.content)