Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a75ec44

Browse files
committed
Test zero byte after hyphen in comment
1 parent 71eebd5 commit a75ec44

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tokenizer/test3.test

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,15 @@
591591
{ "code": "incorrectly-opened-comment", "line": 1, "col": 3 }
592592
]},
593593

594+
{"description":"<!-\\u0000",
595+
"input":"<!-\u0000",
596+
"output":[["Comment", "-\uFFFD"]],
597+
"errors":[
598+
{ "code": "incorrectly-opened-comment", "line": 1, "col": 4 },
599+
{ "code": "unexpected-null-character", "line": 1, "col": 4 },
600+
{ "code": "eof-in-comment", "line": 1, "col": 5 }
601+
]},
602+
594603
{"description":"<!--",
595604
"input":"<!--",
596605
"output":[["Comment", ""]],

0 commit comments

Comments
 (0)