Add tests for javascript deindenting

This commit is contained in:
John Isom 2020-07-29 15:05:49 -06:00
parent 29e94c46e0
commit 428232d2fa
4 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1 @@
c<ret><esc>Oif (true) {}<esc>hi<ret><esc>Oconsole.log();<esc>hhi<ret><esc>O{},<ret>{},<esc>hh<a-C>i<ret><esc>1<space>Ofoo: { bar: 1 },<esc>jjobaz: { bam: 2 },<esc>

View File

@ -0,0 +1 @@
for (let i = 1; i < 5; ++i) {%( )}

View File

@ -0,0 +1,12 @@
for (let i = 1; i < 5; ++i) {
if (true) {
console.log(
{
foo: { bar: 1 },
},
{
baz: { bam: 2 },
},
);
}
}

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/javascript.kak"
set buffer filetype javascript