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,49 @@
[
(class_body)
(function_body)
(function_expression_body)
(declaration
(initializers))
(switch_block)
(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)
(comment) @indent.ignore
; dedenting the else block is painfully slow; replace with simpler strategy
; (if_statement) @indent.begin
; (if_statement
; (block) @indent.branch)
(if_statement) @indent.auto