Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix starter/stopper contextual check.
It was always not checking for the right thing. Somehow we got away
with it on Parrot and JVM, but Moar tripped. So, correct it. It will
save some spurious calls to !LITERAL on all backends.
  • Loading branch information
jnthn committed Oct 9, 2013
1 parent 85ab267 commit c204a57
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/HLL/Grammar.nqp
Expand Up @@ -367,16 +367,16 @@ position C<pos>.

method starter() {
my $start := $*QUOTE_START;
nqp::isnull($start)
?? self.'!cursor_start_fail'()
!! self.'!LITERAL'($start)
nqp::isconcrete($start)
?? self.'!LITERAL'($start)
!! self.'!cursor_start_fail'()
}

method stopper() {
my $stop := $*QUOTE_STOP;
nqp::isnull($stop)
?? self.'!cursor_start_fail'()
!! self.'!LITERAL'($stop)
nqp::isconcrete($stop)
?? self.'!LITERAL'($stop)
!! self.'!cursor_start_fail'()
}

our method split_words(str $words) {
Expand Down

0 comments on commit c204a57

Please sign in to comment.