Refactor custom node implementation, add visitor API and stable unqoted text.#44
Merged
Refactor custom node implementation, add visitor API and stable unqoted text.#44
Conversation
2f657bf to
8c683c1
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #44 +/- ##
==========================================
- Coverage 76.93% 71.26% -5.67%
==========================================
Files 12 18 +6
Lines 750 1507 +757
==========================================
+ Hits 577 1074 +497
- Misses 173 433 +260 ☔ View full report in Codecov by Sentry. |
252689c to
1034d21
Compare
1034d21 to
24c3d64
Compare
0dccd7d to
0471cfd
Compare
d81be52 to
8378681
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #13
Closes: #5
This pr contain a lot of fixes, few of them refactor CustomNode to use ParseRecoverable and ToTokens instead of custom methods.
New crate rstml-controll-flow was added in order to show how to use CustomNode in real project.
Added visitor API and refactored html-to-string-macro to use it.
Added hack for stable to parse unquoted text correctly, this is hidden behind feature gate "rawtext-stable-hack"
Because hack is using
source_textfunction, it cannot be used if template macro called from generated input.Macro matcher module allows extracting html template from macro arguments.