pest-parser / pest

The Elegant Parser
https://pest.rs
Apache License 2.0
4.67k stars 262 forks source link

Update mod.rs #895

Closed TheVeryDarkness closed 1 year ago

TheVeryDarkness commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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

TheVeryDarkness commented 1 year ago

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.