We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b81195 commit 0815cdeCopy full SHA for 0815cde
src/QHLL/Grammar.pm
@@ -798,10 +798,13 @@ An operator precedence parser.
798
have_markhash:
799
};
800
%markhash{$markname} := $pos;
801
- 1;
+ my $cur := self."!cursor_start"();
802
+ $cur."!cursor_pass"($pos);
803
+ $cur;
804
}
805
806
method MARKED($markname) {
807
808
Q:PIR {
809
.local pmc self, markname, markhash
810
self = find_lex 'self'
@@ -812,10 +815,11 @@ An operator precedence parser.
812
815
if null $P0 goto fail
813
816
$P1 = self.'pos'()
814
817
unless $P0 == $P1 goto fail
- .return (1)
818
+ $P2 = find_lex '$cur'
819
+ $P2."!cursor_pass"($P1)
820
fail:
- .return (0)
821
822
+ $cur
823
824
825
method LANG($lang, $regex) {
0 commit comments