Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
tachibanayui authored Jul 25, 2024
2 parents 89b0ba8 + a225580 commit f6093da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Similar to JSX but for Rust (commonly named RSX).The parsed result is a nested `

The fork of original [syn-rsx](https://github.com/stoically/syn-rsx) repo.
It was created because of various reasons:
- The author of original `syn-rsx` retired, end left new features without attention https://github.com/stoically/syn-rsx/issues/49
- The author of original `syn-rsx` [have passed away](https://github.com/stoically/temporary-containers/issues/618).
- Syn v2 was released and `syn-rsx` need to be mooved to new version.
- The idea of [lossless parsing](https://github.com/stoically/syn-rsx/issues/53) was left unattended.
- [Unquoted text](https://github.com/stoically/syn-rsx/issues/2) feature should advance.
Expand Down
8 changes: 8 additions & 0 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ pub struct Parser<C> {
config: ParserConfig<C>,
}

impl Default for Parser<Infallible> {
fn default() -> Self {
Self {
config: ParserConfig::default(),
}
}
}

impl<C: CustomNode + std::fmt::Debug> Parser<C> {
/// Create a new parser with the given [`ParserConfig`].
pub fn new(config: ParserConfig<C>) -> Self {
Expand Down

0 comments on commit f6093da

Please sign in to comment.