Skip to content

Commit

Permalink
-- in a comment isn't an error
Browse files Browse the repository at this point in the history
`<!-- -- -->` 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.
  • Loading branch information
stevecheckoway committed Oct 1, 2018
1 parent e20b7b3 commit 2db78ec
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tree-construction/comments01.dat
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ FOO<!-- BAR --!>BAZ
FOO<!-- BAR -- >BAZ
#errors
(1,3): expected-doctype-but-got-chars
(1,15): unexpected-char-in-comment
(1,21): eof-in-comment
#new-errors
(1:22) eof-in-comment
Expand All @@ -44,8 +43,6 @@ FOO<!-- BAR -- >BAZ
FOO<!-- BAR -- <QUX> -- MUX -->BAZ
#errors
(1,3): expected-doctype-but-got-chars
(1,15): unexpected-char-in-comment
(1,24): unexpected-char-in-comment
#document
| <html>
| <head>
Expand All @@ -58,8 +55,6 @@ FOO<!-- BAR -- <QUX> -- MUX -->BAZ
FOO<!-- BAR -- <QUX> -- MUX --!>BAZ
#errors
(1,3): expected-doctype-but-got-chars
(1,15): unexpected-char-in-comment
(1,24): unexpected-char-in-comment
(1,31): unexpected-bang-after-double-dash-in-comment
#new-errors
(1:32) incorrectly-closed-comment
Expand All @@ -75,9 +70,6 @@ FOO<!-- BAR -- <QUX> -- MUX --!>BAZ
FOO<!-- BAR -- <QUX> -- MUX -- >BAZ
#errors
(1,3): expected-doctype-but-got-chars
(1,15): unexpected-char-in-comment
(1,24): unexpected-char-in-comment
(1,31): unexpected-char-in-comment
(1,35): eof-in-comment
#new-errors
(1:36) eof-in-comment
Expand Down

0 comments on commit 2db78ec

Please sign in to comment.