Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding token starter to q and qq messed up heredoc parsing
So we basically just delete them when it's actually a heredoc.
integration/advent2012-day10.t no longer hangs, and passes with flying
colors
  • Loading branch information
Mouq committed Apr 20, 2014
1 parent 17f4ee3 commit e210385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Perl6/Grammar.nqp
Expand Up @@ -138,6 +138,7 @@ role STD {
}

role herestop {
token starter { <!> }
token stopper { ^^ {} $<ws>=(\h*) $*DELIM \h* $$ \v? }
}

Expand Down Expand Up @@ -4231,7 +4232,7 @@ grammar Perl6::QGrammar is HLL::Grammar does STD {
}
token escape:ch { $<ch> = [\S] <.ccstate($<ch>.Str)> }

token backslash:delim { <text=.starter>|<text=.stopper> }
token backslash:delim { <text=.starter> | <text=.stopper> }
token backslash:a { :i <sym> }
token backslash:b { :i <sym> }
token backslash:c { :i <sym> <charspec> }
Expand Down

0 comments on commit e210385

Please sign in to comment.