Skip to content

Commit

Permalink
parse <<END with correct quote language
Browse files Browse the repository at this point in the history
  • Loading branch information
TimToady committed Sep 2, 2012
1 parent b178d5b commit 36c6322
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions STD_P5.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -1339,10 +1339,10 @@ token p5quote:sym« << » { '<<' ::
| <?before "'"> <quibble($¢.cursor_fresh( %*LANG<Q> ).tweak(:q).cursor_herelang)>
| <identifier>
<.queue_heredoc( $<identifier>.Str,
.cursor_fresh( %*LANG<Q> ).tweak(:qq).cursor_herelang )>
.cursor_fresh( %*LANG<Q> ).tweak(:qq) )>
| \\ <identifier>
<.queue_heredoc( $<identifier>.Str,
.cursor_fresh( %*LANG<Q> ).tweak(:q).cursor_herelang )>
.cursor_fresh( %*LANG<Q> ).tweak(:q) )>
] || <.panic: "Couldn't parse heredoc construct">
}

Expand Down
2 changes: 1 addition & 1 deletion viv
Original file line number Diff line number Diff line change
Expand Up @@ -2312,7 +2312,7 @@ TEXT
grep { $::BINDINGS{$_} > 1 }
sort keys %::BINDINGS)
. ($::SYM ? '$C->{sym} = "' . ::rd($::SYM) . "\";\n" : '')
. <<"END"
. <<END
\$self->_MATCHIFY$ratchet(\$S, "$p5name", ${\ $body->p5expr });
END
, 1) . "}\n";
Expand Down

0 comments on commit 36c6322

Please sign in to comment.