First valid release of fork repo
Chore
- Refactor node module, split types into submodules
- Update to syn 2.0
- Implement config passing, and allow to emit more than one error from macro expansion.
- Make Node types clonable.
- Fix recoverable parser. Now try to recover if any sequence is incorrect.
- Bump syn_derive to 0.1.6 to avoid nightly
- Start a new version history
Documentation
- Add comparsion with syn-rsx
Features
- Remove attributes from node list, and make type guaranties that attribute will be stored only in Element
- Improve tag close handling.
- Allow parsing of invalid rust code blocks
- Add support of unqoted text.
Fix
- Refactor ToTokens implementation and node structure to contain all source tokens.
- Re-implement tree flattening.
- Reimplement transform_block and fix tests
- Attribute value parsing span
- Updated example, bench, made fragment parsing recoverable.
- Make public keyed attribute fields.
- RawText to_source implementation on stable
Refactor
-
Move node.rs to separate module.
-
Remove Display implementation for most of node types.
-
Simlify Parse and ToToken impl, by using syn_derive.
-
Refactor: remove NodeValueExpr type
NodeValueExpr was replaced by syn::Expr in all places where expr is needed.
For places where {code} is expected NodeBlock was used. -
Cleanup of parsing code.
-
Refactor recoverable parser.
-
Refactor: Remove tls context at all.
Use RecoverableContext instead.