feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent 310f0925ec
commit 692b051b09
1247 changed files with 6096 additions and 9074 deletions

View file

@ -0,0 +1,6 @@
[
(list)
(block)
(if_statement)
(else_statement)
] @fold

View file

@ -0,0 +1,78 @@
; Includes
"import" @keyword.import
; Conditionals
[
"if"
"else"
] @keyword.conditional
; Repeats
"foreach" @keyword.repeat
; Operators
[
"="
"+="
"-="
"!"
"+"
"-"
"<"
"<="
">"
">="
"=="
"!="
"&&"
"||"
] @operator
; Variables
(identifier) @variable
; Functions
(call_expression
function: (identifier) @function.call)
; Fields
(scope_access
field: (identifier) @variable.member)
; Literals
(string) @string
(escape_sequence) @string.escape
(expansion) @none
(integer) @number
(hex) @string.special
(boolean) @boolean
; Punctuation
[
"{"
"}"
"["
"]"
"("
")"
] @punctuation.bracket
[
"."
","
] @punctuation.delimiter
(expansion
[
"$"
"${"
"}"
] @punctuation.special)
; Comments
(comment) @comment

View file

@ -0,0 +1,12 @@
[
(block)
(parenthesized_expression)
] @indent.begin
[
"}"
")"
"]"
] @indent.end @indent.branch
(comment) @indent.auto

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,6 @@
[
(source_file)
(block)
] @local.scope
(identifier) @local.reference