Skip to content

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

Open
zmughal wants to merge 6 commits intoshadow-dot-cat:masterfrom
zmughal:postfix-deref-qq
Open

PostfixDeref: Add support for postderef_qq, postfix ->$#*#12
zmughal wants to merge 6 commits intoshadow-dot-cat:masterfrom
zmughal:postfix-deref-qq

Conversation

@zmughal
Copy link
Copy Markdown

@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