Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created February 19, 2025 01:19
diff --git src/HLL/Grammar.nqp src/HLL/Grammar.nqp
index 0365c5536..b2207cc64 100644
--- src/HLL/Grammar.nqp
+++ src/HLL/Grammar.nqp
@@ -635,12 +635,13 @@ An operator precedence parser.
}
method MARKED(str $markname) {
+ my $shared := nqp::getattr(self, NQPMatch, '$!shared');
my %markhash := nqp::getattr(
- nqp::getattr(self, NQPMatch, '$!shared'),
+ $shared,
ParseShared, '%!marks');
my $cur := nqp::atkey(%markhash, $markname);
unless nqp::istype($cur, NQPMatch) && $cur.pos() == self.pos() {
- $cur := self.'!cursor_start_fail'();
+ $cur := nqp::getattr($shared, ParseShared, '$!fail_cursor')
}
$cur
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment