Add tests for javascript deindenting
This commit is contained in:
parent
29e94c46e0
commit
428232d2fa
|
@ -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>
|
|
@ -0,0 +1 @@
|
||||||
|
for (let i = 1; i < 5; ++i) {%( )}
|
12
test/indent/javascript/deindent-complex-brace-structure/out
Normal file
12
test/indent/javascript/deindent-complex-brace-structure/out
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
for (let i = 1; i < 5; ++i) {
|
||||||
|
if (true) {
|
||||||
|
console.log(
|
||||||
|
{
|
||||||
|
foo: { bar: 1 },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
baz: { bam: 2 },
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
source "%val{runtime}/colors/default.kak"
|
||||||
|
source "%val{runtime}/rc/filetype/javascript.kak"
|
||||||
|
set buffer filetype javascript
|
Loading…
Reference in New Issue
Block a user