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

Improve support for sigils in Perl lexer #1625

Merged
merged 1 commit into from
Nov 10, 2020

Conversation

pyrmont
Copy link
Contributor

@pyrmont pyrmont commented Nov 9, 2020

Perl supports a variety of different sigils ($, @, %, etc). This PR improves support for some of the more unusual combinations of sigils.

It fixes #1619.

@pyrmont pyrmont self-assigned this Nov 9, 2020
@pyrmont pyrmont added the needs-review The PR needs to be reviewed label Nov 9, 2020
@pyrmont
Copy link
Contributor Author

pyrmont commented Nov 9, 2020

@Phroneris Thanks for reporting the bug. I confess that as a non-Perl programmer, Perl's use of sigils comes across as super weird. I suspect these changes to the rules will match syntactically incorrect Perl but since syntax correctness is a non-goal of Rouge, this seemed like a decent balance between clarity and correctness.

@Phroneris
Copy link

@pyrmont I strongly agree about Perl's weirdness. Thanks a lot.

@pyrmont pyrmont merged commit 03b91ed into rouge-ruby:master Nov 10, 2020
@pyrmont pyrmont deleted the bugfix.perl-sigils branch November 10, 2020 01:18
@pyrmont pyrmont removed the needs-review The PR needs to be reviewed label Nov 10, 2020
@pyrmont
Copy link
Contributor Author

pyrmont commented Nov 10, 2020

@Phroneris This will be part of the next release of Rouge, v3.25.0. That's scheduled for release later today/tomorrow (depending on your time zone). Thanks again for the bug report!

mattt pushed a commit to NSHipster/rouge that referenced this pull request May 19, 2021
Perl supports a variety of different sigils (`$`, `@`, `%`, etc). This
commit improves support for some of the more unusual combinations of
sigils.
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.

Perl: can't handle postfix dereference
3 participants