aboutsummaryrefslogtreecommitdiffstats
path: root/queries/wgsl
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/wgsl
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/wgsl')
-rw-r--r--queries/wgsl/folds.scm10
-rw-r--r--queries/wgsl/highlights.scm127
-rw-r--r--queries/wgsl/indents.scm43
-rw-r--r--queries/wgsl/injections.scm5
4 files changed, 0 insertions, 185 deletions
diff --git a/queries/wgsl/folds.scm b/queries/wgsl/folds.scm
deleted file mode 100644
index 60b526c53..000000000
--- a/queries/wgsl/folds.scm
+++ /dev/null
@@ -1,10 +0,0 @@
-[
- (struct_declaration)
- (function_declaration)
- (if_statement)
- (switch_statement)
- (switch_body)
- (loop_statement)
- (for_statement)
- (while_statement)
-] @fold
diff --git a/queries/wgsl/highlights.scm b/queries/wgsl/highlights.scm
deleted file mode 100644
index 854ffe921..000000000
--- a/queries/wgsl/highlights.scm
+++ /dev/null
@@ -1,127 +0,0 @@
-(identifier) @variable
-
-(int_literal) @number
-
-(float_literal) @number.float
-
-(bool_literal) @boolean
-
-(type_declaration) @type
-
-(function_declaration
- (identifier) @function)
-
-(parameter
- (variable_identifier_declaration
- (identifier) @variable.parameter))
-
-(struct_declaration
- (identifier) @type)
-
-(struct_declaration
- (struct_member
- (variable_identifier_declaration
- (identifier) @variable.member)))
-
-(type_constructor_or_function_call_expression
- (type_declaration) @function.call)
-
-[
- "bitcast"
- "discard"
- "enable"
- "fallthrough"
- "let"
- "type"
- "var"
- "override"
- (texel_format)
-] @keyword
-
-"struct" @keyword.type
-
-[
- "private"
- "storage"
- "uniform"
- "workgroup"
-] @keyword.modifier
-
-[
- "read"
- "read_write"
- "write"
-] @keyword.modifier
-
-"fn" @keyword.function
-
-"return" @keyword.return
-
-[
- ","
- "."
- ":"
- ";"
- "->"
-] @punctuation.delimiter
-
-[
- "("
- ")"
- "["
- "]"
- "{"
- "}"
-] @punctuation.bracket
-
-[
- "loop"
- "for"
- "while"
- "break"
- "continue"
- "continuing"
-] @keyword.repeat
-
-[
- "if"
- "else"
- "switch"
- "case"
- "default"
-] @keyword.conditional
-
-[
- "&"
- "&&"
- "/"
- "!"
- "="
- "=="
- "!="
- ">"
- ">="
- ">>"
- "<"
- "<="
- "<<"
- "%"
- "-"
- "+"
- "|"
- "||"
- "*"
- "~"
- "^"
- "@"
- "++"
- "--"
-] @operator
-
-(attribute
- (identifier) @attribute)
-
-[
- (line_comment)
- (block_comment)
-] @comment @spell
diff --git a/queries/wgsl/indents.scm b/queries/wgsl/indents.scm
deleted file mode 100644
index 579c665bc..000000000
--- a/queries/wgsl/indents.scm
+++ /dev/null
@@ -1,43 +0,0 @@
-[
- (compound_statement)
- (loop_statement)
- (struct_declaration)
- (type_constructor_or_function_call_expression)
-] @indent.begin
-
-((parameter_list) @indent.begin
- (#set! indent.immediate)
- (#set! indent.start_at_same_line))
-
-(function_declaration
- "(" @indent.begin
- (#set! indent.immediate))
-
-(ERROR
- "fn"
- (identifier)
- "(" @indent.begin
- (#set! indent.immediate))
-
-(compound_statement
- "}" @indent.end)
-
-(loop_statement
- "}" @indent.end)
-
-(function_declaration
- ")" @indent.end)
-
-(struct_declaration
- "}" @indent.end)
-
-[
- "else"
- ")"
- "}"
-] @indent.branch
-
-[
- (line_comment)
- (block_comment)
-] @indent.auto
diff --git a/queries/wgsl/injections.scm b/queries/wgsl/injections.scm
deleted file mode 100644
index 3cd6aac8e..000000000
--- a/queries/wgsl/injections.scm
+++ /dev/null
@@ -1,5 +0,0 @@
-([
- (line_comment)
- (block_comment)
-] @injection.content
- (#set! injection.language "comment"))