Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mod.rs #895

Closed
wants to merge 134 commits into from
Closed

Conversation

TheVeryDarkness
Copy link
Contributor

Fix an error of implementation of Display for OptimizedExpr, which will break the line when it contains a control character such as \n or \r.

Merge a part of Rule into Atomic and NonAtomic; fix tests.
Abandon Atomic and NonAtomic.
Separate codes into different modules.
Compress nested option by flatten().
Fix an error of implementation of Display for OptimizedExpr, which will break the line when it contains a control character.
Fix an error of implementation of Display for OptimizedExpr, which will break the line when it contains a control character such as \n or \r.
@TheVeryDarkness TheVeryDarkness requested a review from a team as a code owner July 19, 2023 09:35
@TheVeryDarkness TheVeryDarkness requested review from NoahTheDuke and removed request for a team July 19, 2023 09:35
Copy link
Contributor

@tomtau tomtau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TheVeryDarkness it seems ok -- can you perhaps add unit tests that demonstrate the bug this change fixed?

@TheVeryDarkness
Copy link
Contributor Author

@tomtau yes, I add several tests and add some improvement to my implementation.
By the way, I also implemented Display for Expr just now :)

@TheVeryDarkness
Copy link
Contributor Author

I'm wondering why github is showing the commit from another branch master but not patch2, which is used to deal with Display.

@TheVeryDarkness
Copy link
Contributor Author

Oops, I create the new branch based on my working branch by mistake. I'll create a new branch and a new pull request then.

TheVeryDarkness added a commit to TheVeryDarkness/pest that referenced this pull request Jul 20, 2023
Not related changes included in previous pull request pest-parser#895.
tomtau pushed a commit that referenced this pull request Jul 20, 2023
* Merge needed codes from #895

Not related changes included in previous pull request #895.

* Add several tests about display

To cover more paths in Seq and Choice. Thanks for @tomtau to point it out in #896.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants