multi-line comment
This commit is contained in:
parent
7ccb1d8108
commit
638548c37b
|
@ -105,6 +105,11 @@ describe("Peggy parse", () => {
|
||||||
testParse("1 // This is a line comment", "{1}")
|
testParse("1 // This is a line comment", "{1}")
|
||||||
testParse("1 /* This is a multi line comment */", "{1}")
|
testParse("1 /* This is a multi line comment */", "{1}")
|
||||||
testParse("/* This is a multi line comment */ 1", "{1}")
|
testParse("/* This is a multi line comment */ 1", "{1}")
|
||||||
|
testParse(`
|
||||||
|
/* This is
|
||||||
|
a multi line
|
||||||
|
comment */
|
||||||
|
1`, "{1}")
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("ternary operator", () => {
|
describe("ternary operator", () => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user