You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use a hand-written parser a string formatting for the match_token! macro…
… instead of the parser and quasi-quoting from Rust’s (unstable) libsyntax.
This has significantly worse diagnostics when encountering unexpected syntax
(e.g. no indication of which line has the offending code)
but this removes all usage of unstable compiler internals
that constantly need to be fixed when updating the compiler.
Fixes#216.
Copy file name to clipboardExpand all lines: STRUCTURE.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ The module structure is also documented in the output produced by `cargo doc`, a
14
14
15
15
`dom_sink/`: Types that html5ever can use to represent the DOM, if you do not provide your own DOM implementation.
16
16
17
-
`macros/`: Rust syntax extensions used within html5ever. Users of the library do not need this crate.
17
+
`macros/`: Code used at build-time to expand the `match_token!` "macro" in `src/tree_builder/rules.rs`.
18
18
19
19
`tests/`: Integration tests. This is a single executable crate that runs html5ever on the various [html5lib-tests](https://github.com/html5lib/html5lib-tests). There are also unit tests throughout the library code. See `README.md` for information on running tests.
0 commit comments