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

simplify Rmd parser pattern: all_patterns$md$inline.code #2143

Merged
merged 3 commits into from
Jun 22, 2022

Conversation

atusy
Copy link
Collaborator

@atusy atusy commented Jun 22, 2022

([^`]+)\\s* should be equivalent to ([^`]+)

([^`]+)\\s* should be equivalent to ([^`]+)
@atusy atusy changed the title simplify all_patterns$md$inline.code simplify Rmd parse: all_patterns$md$inline.code Jun 22, 2022
@atusy atusy changed the title simplify Rmd parse: all_patterns$md$inline.code simplify Rmd parser pattern: all_patterns$md$inline.code Jun 22, 2022
Copy link
Owner

@yihui yihui left a comment

Choose a reason for hiding this comment

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

Yes, they are equivalent in theory. The only difference is whether the parsed inline R code includes trailing spaces. Trailing spaces don't matter in R code, so this change shouldn't break anything. I'll merge for now and see if it will cause any problems in reverse dependencies before the next CRAN release. Thanks!

NEWS.md Outdated Show resolved Hide resolved
[ci skip]
@yihui yihui merged commit c874c17 into yihui:master Jun 22, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants