aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/ecma
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2024-07-03 19:13:16 -0700
committerGitHub <noreply@github.com>2024-07-04 11:13:16 +0900
commitfa611f612a7b04c239d07f61ba80e09cb95c5af4 (patch)
tree97f80f2b28bfb731854f8eaf264fed162f01dd4b /tests/indent/ecma
parentfix(prolog): switch to github mirror (diff)
downloadnvim-treesitter-fa611f612a7b04c239d07f61ba80e09cb95c5af4.tar
nvim-treesitter-fa611f612a7b04c239d07f61ba80e09cb95c5af4.tar.gz
nvim-treesitter-fa611f612a7b04c239d07f61ba80e09cb95c5af4.tar.bz2
nvim-treesitter-fa611f612a7b04c239d07f61ba80e09cb95c5af4.tar.lz
nvim-treesitter-fa611f612a7b04c239d07f61ba80e09cb95c5af4.tar.xz
nvim-treesitter-fa611f612a7b04c239d07f61ba80e09cb95c5af4.tar.zst
nvim-treesitter-fa611f612a7b04c239d07f61ba80e09cb95c5af4.zip
fix(ecma): indent single-line if statements (#6846)
Fixes #5898.
Diffstat (limited to 'tests/indent/ecma')
-rw-r--r--tests/indent/ecma/if_else.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/indent/ecma/if_else.js b/tests/indent/ecma/if_else.js
index 4f971c8fc..990ccd19a 100644
--- a/tests/indent/ecma/if_else.js
+++ b/tests/indent/ecma/if_else.js
@@ -11,3 +11,9 @@ if (cond1) {
} else {
do_fallback()
}
+
+if (true)
+ console.log('hi')
+console.log('hi')
+
+if (true)