feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent c13e28f894
commit 2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions

View file

@ -0,0 +1,10 @@
[
(struct_declaration)
(function_declaration)
(if_statement)
(switch_statement)
(switch_body)
(loop_statement)
(for_statement)
(while_statement)
] @fold

View file

@ -0,0 +1,106 @@
(identifier) @variable
(int_literal) @number
(float_literal) @float
(bool_literal) @boolean
(type_declaration) @type
(function_declaration
(identifier) @function)
(parameter
(variable_identifier_declaration (identifier) @parameter))
(struct_declaration
(identifier) @type)
(struct_declaration
(struct_member (variable_identifier_declaration (identifier) @field)))
(type_constructor_or_function_call_expression
(type_declaration) @function.call)
[
"struct"
"bitcast"
"discard"
"enable"
"fallthrough"
"let"
"type"
"var"
"override"
(texel_format)
] @keyword
[
"private"
"storage"
"uniform"
"workgroup"
] @storageclass
[
"read"
"read_write"
"write"
] @type.qualifier
"fn" @keyword.function
"return" @keyword.return
[ "," "." ":" ";" "->" ] @punctuation.delimiter
["(" ")" "[" "]" "{" "}"] @punctuation.bracket
[
"loop"
"for"
"while"
"break"
"continue"
"continuing"
] @repeat
[
"if"
"else"
"switch"
"case"
"default"
] @conditional
[
"&"
"&&"
"/"
"!"
"="
"=="
"!="
">"
">="
">>"
"<"
"<="
"<<"
"%"
"-"
"+"
"|"
"||"
"*"
"~"
"^"
"@"
"++"
"--"
] @operator
(attribute
(identifier) @attribute)
[(line_comment) (block_comment)] @comment
(ERROR) @error

View file

@ -0,0 +1,19 @@
[
(parameter_list)
(compound_statement)
(loop_statement)
(struct_declaration)
] @indent.begin
(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