In perl.git, the branch smoke-me/tonyc/130585-scope-stack-assert has been 
created

<https://perl5.git.perl.org/perl.git/commitdiff/84083dae5d47d85867db20d7bd52b18cd3f624de?hp=0000000000000000000000000000000000000000>

        at  84083dae5d47d85867db20d7bd52b18cd3f624de (commit)

- Log -----------------------------------------------------------------
commit 84083dae5d47d85867db20d7bd52b18cd3f624de
Author: Tony Cook <t...@develop-help.com>
Date:   Tue Feb 12 16:30:34 2019 +1100

    (perl #130585) prevent a spurious ) in a subparse confusing the parser
    
    When doing a subparse, the tokenizer opens up the subexpression
    with a '(' token, expecting the logic in yylex() to generate a ')'
    once it sees the end of the subparsed string.
    
    If the subparsed string includes an unmatched ')', this could confuse
    the parser into finishing the expression and effectively exiting the
    subparse without cleaning up (including popping the context)
    
    To avoid that, create special bracketing tokens only generated for
    a subparse and update the grammar to use those tokens in the cases
    they might be used in a subparse.
    
    This is an updated version of the patch that moves the FUNC rule
    to where the original rule was and adds a test for non-regexp
    subparses.

-----------------------------------------------------------------------

-- 
Perl5 Master Repository

Reply via email to