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,45 @@
[
(class_body)
(function_body)
(function_expression_body)
(declaration (initializers))
(switch_block)
(if_statement)
(formal_parameter_list)
(formal_parameter)
(list_literal)
(return_statement)
(arguments)
(try_statement)
] @indent.begin
(switch_block
(_) @indent.begin
(#set! indent.immediate 1)
(#set! indent.start_at_same_line 1))
[
(switch_statement_case)
(switch_statement_default)
] @indent.branch
[
"("
")"
"{"
"}"
"["
"]"
] @indent.branch
[
"}"
] @indent.end
(return_statement ";" @indent.end)
(break_statement ";" @indent.end)
; this one is for dedenting the else block
(if_statement (block) @indent.branch)
(comment) @indent.ignore