mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
indents(ecma): Fix switch default indent
This commit is contained in:
parent
440401c506
commit
6c4772f7b6
3 changed files with 10 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
|||
(with_statement)
|
||||
(switch_statement)
|
||||
(switch_case)
|
||||
(switch_default)
|
||||
(import_statement)
|
||||
(if_statement)
|
||||
(try_statement)
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
(return_statement)
|
||||
(statement_block)
|
||||
(switch_case)
|
||||
(switch_default)
|
||||
(switch_statement)
|
||||
(template_substitution)
|
||||
(ternary_expression)
|
||||
|
|
|
|||
8
tests/indent/ecma/switch.js
Normal file
8
tests/indent/ecma/switch.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
switch (variable) {
|
||||
case 'case1':
|
||||
foo();
|
||||
break;
|
||||
|
||||
default:
|
||||
bar();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue