Skip to content

Commit 2db78ec

Browse files
-- in a comment isn't an error
`<!-- -- -->` is not an error. The middle `--` cause the tokenizer to enter the comment end state. The "anything else" clause appends two `-` to the comment token's data and the current input character is reconsumed in the comment state.
1 parent e20b7b3 commit 2db78ec

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tree-construction/comments01.dat

-8
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ FOO<!-- BAR --!>BAZ
2929
FOO<!-- BAR -- >BAZ
3030
#errors
3131
(1,3): expected-doctype-but-got-chars
32-
(1,15): unexpected-char-in-comment
3332
(1,21): eof-in-comment
3433
#new-errors
3534
(1:22) eof-in-comment
@@ -44,8 +43,6 @@ FOO<!-- BAR -- >BAZ
4443
FOO<!-- BAR -- <QUX> -- MUX -->BAZ
4544
#errors
4645
(1,3): expected-doctype-but-got-chars
47-
(1,15): unexpected-char-in-comment
48-
(1,24): unexpected-char-in-comment
4946
#document
5047
| <html>
5148
| <head>
@@ -58,8 +55,6 @@ FOO<!-- BAR -- <QUX> -- MUX -->BAZ
5855
FOO<!-- BAR -- <QUX> -- MUX --!>BAZ
5956
#errors
6057
(1,3): expected-doctype-but-got-chars
61-
(1,15): unexpected-char-in-comment
62-
(1,24): unexpected-char-in-comment
6358
(1,31): unexpected-bang-after-double-dash-in-comment
6459
#new-errors
6560
(1:32) incorrectly-closed-comment
@@ -75,9 +70,6 @@ FOO<!-- BAR -- <QUX> -- MUX --!>BAZ
7570
FOO<!-- BAR -- <QUX> -- MUX -- >BAZ
7671
#errors
7772
(1,3): expected-doctype-but-got-chars
78-
(1,15): unexpected-char-in-comment
79-
(1,24): unexpected-char-in-comment
80-
(1,31): unexpected-char-in-comment
8173
(1,35): eof-in-comment
8274
#new-errors
8375
(1:36) eof-in-comment

0 commit comments

Comments
 (0)