parse LF & comment correctly (#2653)

fixes #2652
This commit is contained in:
Alex Lam S.L
2017-12-26 01:38:01 +08:00
committed by GitHub
parent 8701a99a15
commit 0fe259e9c5
2 changed files with 47 additions and 9 deletions

View File

@@ -0,0 +1,33 @@
insert_semicolon: {
beautify = {
beautify: true,
comments: "all",
}
input: {
var a
/* foo */ var b
}
expect_exact: [
"var a",
"/* foo */;",
"",
"var b;",
]
}
unary_postfix: {
beautify = {
beautify: true,
comments: "all",
}
input: {
a
/* foo */++b
}
expect_exact: [
"a",
"/* foo */;",
"",
"++b;",
]
}