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,9 @@
[
(normal_command)
(if_condition)
(if_command)
(else_command)
(elseif_command)
(foreach_command)
(list)
] @fold

View file

@ -0,0 +1,77 @@
(comment) @comment @spell
(number) @number
(bool) @boolean
(identifier) @variable
[
"("
")"
"{"
"}"
"["
"]"
] @punctuation.bracket
[
":"
","
"."
] @punctuation.delimiter
[
"and"
"not"
"or"
"in"
] @keyword.operator
[
"="
"=="
"!="
"+"
"/"
"/="
"+="
"-="
">"
">="
] @operator
(ternaryoperator
[
"?"
":"
] @keyword.conditional.ternary)
[
"if"
"elif"
"else"
"endif"
] @keyword.conditional
[
"foreach"
"endforeach"
(keyword_break)
(keyword_continue)
] @keyword.repeat
(string) @string
"@" @punctuation.special
(normal_command
command: (identifier) @function)
(pair
key: (identifier) @property)
(escape_sequence) @string.escape
((identifier) @variable.builtin
(#any-of? @variable.builtin "meson" "host_machine" "build_machine" "target_machine"))

View file

@ -0,0 +1,25 @@
[
(list)
(dictionaries)
(normal_command)
(if_condition)
(foreach_command)
(ternaryoperator)
(ERROR
"?") ; support partial ternary
] @indent.begin
[
")"
"]"
"}"
(elseif_command)
(else_command)
"endif"
"endforeach"
] @indent.branch @indent.end
(expression_statement
object: (_)) @indent.begin
(comment) @indent.auto

View file

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