multi-line comment

This commit is contained in:
Umur Ozkul 2022-05-19 18:04:51 +02:00
parent 7ccb1d8108
commit 638548c37b

View File

@ -105,6 +105,11 @@ describe("Peggy parse", () => {
testParse("1 // This is a 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}")
})
describe("ternary operator", () => {