From 346ddd473512ed6e9a81e1fa9d42717a37afcf76 Mon Sep 17 00:00:00 2001 From: Thor Adam Date: Tue, 21 Mar 2023 22:13:32 +0000 Subject: [PATCH] Add `switch_statement` to ecma indents (#6369) --- runtime/queries/ecma/indents.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runtime/queries/ecma/indents.scm b/runtime/queries/ecma/indents.scm index a4237e599..12c8fc98e 100644 --- a/runtime/queries/ecma/indents.scm +++ b/runtime/queries/ecma/indents.scm @@ -5,6 +5,7 @@ (formal_parameters) (statement_block) + (switch_statement) (object_pattern) (class_body) (named_imports) @@ -15,6 +16,11 @@ (export_clause) ] @indent +[ + (switch_case) + (switch_default) +] @indent @extend + [ "}" "]"