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

PostfixDeref: Add support for postderef_qq, postfix ->$#* #12

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

zmughal
Copy link

@zmughal zmughal commented Aug 9, 2022

This is implemented on top of #11.

  • Add test for postderef hash-slice
  • PostfixDeref: Add support for postderef_qq
  • Support ->$#* postfix (last index access)

zmughal and others added 6 commits August 8, 2022 20:03
With the release of PPR v0.001000 there is a backwards incompatible
change in the definition of the `PerlTerm` rule to include postfix
arrows for dereferencing and methods.

This affects the plugin(s):

    $ git grep -lP '\b(Perl)?(Term|((ScalarAccess|ArrayAccess)(NoSpace)?))' lib/
    lib/Babble/Plugin/PostfixDeref.pm
Newer PPR handles the postfix dereference in `PerlTerm` while
`PerlScalarAccess` handles indexing without any arrows.

This also addresses the issue of <shadow-dot-cat#3>.
This adds the tests from that PR (djerius++).

Co-authored-by: Diab Jerius <djerius@cfa.harvard.edu>
For PostfixDeref that is interpolated in quote-likes.
zmughal added a commit to zmughal/Babble that referenced this pull request Sep 4, 2022
PostfixDeref: Add support for postderef_qq, postfix ->$#*
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.

1 participant