Skip to content

Commit 8a3fdfd

Browse files
committed
remove LASTSTATE hack
1 parent 77327a4 commit 8a3fdfd

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

CursorBase.pmc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ sub initparse {
440440
local $::HIGHWATER = 0;
441441
local $::HIGHMESS = '';
442442
local $::HIGHEXPECT = {};
443-
local $::LASTSTATE;
444443
local $::LAST_NIBBLE = bless { firstline => 0, lastline => 0 }, 'Cursor';
445444
local $::LAST_NIBBLE_MULTILINE = bless { firstline => 0, lastline => 0 }, 'Cursor';
446445
local $::GOAL = "(eof)";

STD.pm6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ grammar P6 is STD {
13221322

13231323
# this could either be a statement that follows a declaration
13241324
# or a statement that is within the block of a code declaration
1325-
<!!{ $*LASTSTATE = $¢.pos; $¢ = %*LANG<MAIN>.bless($¢); }>
1325+
<!!{ $¢ = %*LANG<MAIN>.bless($¢); }>
13261326

13271327
[
13281328
| <label> <statement>

viv

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,8 +1687,6 @@ my \$retree;
16871687
16881688
use YAML::XS;
16891689
1690-
\$SIG{__WARN__} = sub { die \@_," statement started at line ", 'Cursor'->lineof(\$::LASTSTATE), "\n" } if \$::DEBUG;
1691-
16921690
END
16931691
$header;
16941692
}

0 commit comments

Comments
 (0)