aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRaymond Ha <raymond@shraymonks.com>2022-12-06 22:08:41 -0800
committerStephan Seitz <stephan.seitz@fau.de>2022-12-07 18:05:33 +0100
commit6c4772f7b667b98ed791ed48a78434506345bb25 (patch)
tree5622cd5763417bc7110c8708d545871a0c7b6e7a /tests
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-6c4772f7b667b98ed791ed48a78434506345bb25.tar
nvim-treesitter-6c4772f7b667b98ed791ed48a78434506345bb25.tar.gz
nvim-treesitter-6c4772f7b667b98ed791ed48a78434506345bb25.tar.bz2
nvim-treesitter-6c4772f7b667b98ed791ed48a78434506345bb25.tar.lz
nvim-treesitter-6c4772f7b667b98ed791ed48a78434506345bb25.tar.xz
nvim-treesitter-6c4772f7b667b98ed791ed48a78434506345bb25.tar.zst
nvim-treesitter-6c4772f7b667b98ed791ed48a78434506345bb25.zip
indents(ecma): Fix switch default indent
Diffstat (limited to 'tests')
-rw-r--r--tests/indent/ecma/switch.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/indent/ecma/switch.js b/tests/indent/ecma/switch.js
new file mode 100644
index 000000000..590b7d35f
--- /dev/null
+++ b/tests/indent/ecma/switch.js
@@ -0,0 +1,8 @@
+switch (variable) {
+ case 'case1':
+ foo();
+ break;
+
+ default:
+ bar();
+}