diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2024-07-03 19:13:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-04 11:13:16 +0900 |
| commit | fa611f612a7b04c239d07f61ba80e09cb95c5af4 (patch) | |
| tree | 97f80f2b28bfb731854f8eaf264fed162f01dd4b /tests/indent/ecma | |
| parent | fix(prolog): switch to github mirror (diff) | |
| download | nvim-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.js | 6 |
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) |
