aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/javascript_spec.lua
diff options
context:
space:
mode:
authorMunif Tanjim <hello@muniftanjim.dev>2022-02-26 20:29:26 +0600
committerStephan Seitz <stephan.seitz@fau.de>2022-02-26 15:44:37 +0100
commit3ef2c77e13c8e3a932416781e3ffb99844425f66 (patch)
treea01a5e1724831b7a23dd7d32397753b72ff8b042 /tests/indent/javascript_spec.lua
parentfix(indent): ecma - class method indentation (diff)
downloadnvim-treesitter-3ef2c77e13c8e3a932416781e3ffb99844425f66.tar
nvim-treesitter-3ef2c77e13c8e3a932416781e3ffb99844425f66.tar.gz
nvim-treesitter-3ef2c77e13c8e3a932416781e3ffb99844425f66.tar.bz2
nvim-treesitter-3ef2c77e13c8e3a932416781e3ffb99844425f66.tar.lz
nvim-treesitter-3ef2c77e13c8e3a932416781e3ffb99844425f66.tar.xz
nvim-treesitter-3ef2c77e13c8e3a932416781e3ffb99844425f66.tar.zst
nvim-treesitter-3ef2c77e13c8e3a932416781e3ffb99844425f66.zip
fix(indent): ecma - parenthesized expression indentation
Diffstat (limited to 'tests/indent/javascript_spec.lua')
-rw-r--r--tests/indent/javascript_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/indent/javascript_spec.lua b/tests/indent/javascript_spec.lua
index 6af93c190..ff4dcb800 100644
--- a/tests/indent/javascript_spec.lua
+++ b/tests/indent/javascript_spec.lua
@@ -60,6 +60,12 @@ describe("indent JavaScript:", function()
{ 19, 2 },
{ 20, 2 },
{ 25, 2 },
+ { 42, 8 },
+ { 43, 10 },
+ { 44, 12 },
+ { 48, 4 },
+ { 49, 4 },
+ { 50, 2 },
}
do
run:new_line("ecma/func.js", { on_line = info[1], text = "//", indent = info[2] }, info[3], info[4])