Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment errors #108

Closed
wants to merge 2 commits into from
Closed

Conversation

stevecheckoway
Copy link
Contributor

I think these were formerly tokenizer errors but they no longer are.

Per #107, I understand that #errors should reflect the actual number of errors and that #new-errors are a way to transition to the new errors but I'm not sure if there's a way to indicate that errors have been removed.

Starting from the data state, we have
1. `<` switches to the tag open state
2. `!` switches to the markup declaration open state
3. `--` switches to the comment start state
4. `-` (the third one) switches to the comment start dash state
5. `-` (the fourth one) switches to the comment end state
6. `-` (the fifth one) appends `-` to the comment and does not change
   state
7. `>` emits the comment token and switches to the data state.
`<!-- -- -->` 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant