Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix undeclared variable error
Previously it would show the cursor in a wrong (later) position and give inappropriate "expecting any of" suggestions based on that position. I'm a bit unclear on the details of this precursor thing, so please do review carefully before merging in case this is the wrong way to fix it, but what I saw seemed to suggest that precursor may be intended for these kinds of cases.
  • Loading branch information
raydiak committed May 8, 2015
1 parent 9c543b5 commit f9343fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Grammar.nqp
Expand Up @@ -310,7 +310,7 @@ role STD {

CATCH {}
}
$*W.throw($var, ['X', 'Undeclared'], symbol => $name, suggestions => @suggestions);
$*W.throw($var, ['X', 'Undeclared'], symbol => $name, suggestions => @suggestions, precursor => '1');
}
}
else {
Expand Down

0 comments on commit f9343fe

Please sign in to comment.