This repository has been archived by the owner on Aug 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the standard error names and give gumbo an error API
All of the standard tokenizer errors are implemented with their given error code strings. Each transition of the tokenizer state machine that emit one or more errors is tested to emit exactly those errors and no others. Those transitions that do not emit an error are tested to ensure that they do not. The `GumboError` is opaque to callers and the `GumboStringBuffer` is not exposed. The error codes of the defined errors as well as the two encoding errors and a generic parser error are available via `gumbo_error_code`. In Nokogiri, the error code is exposed via `Nokogiri::XML::SyntaxError#str1`.
- Loading branch information
1 parent
b7783f5
commit e844f21
Showing
11 changed files
with
1,013 additions
and
749 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.