-
-
Save AlexDaniel/6e9964d2bdcceb6f8b7a03a8bfa21ef9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core/Grammar.pm b/src/core/Grammar.pm | |
index 514b81d2d..445396548 100644 | |
--- a/src/core/Grammar.pm | |
+++ b/src/core/Grammar.pm | |
@@ -28,9 +28,13 @@ my class Grammar is Match { | |
), | |
$match := ($cursor := $cursor.'!cursor_next'()).MATCH | |
), | |
- $match || $grammar.?SETFAIL($match, :$filename) | |
+ $match || ($grammar.^find_method('SETFAIL').name eq 'SETFAIL' | |
+ ?? $grammar.SETFAIL($match, :$filename) | |
+ !! Nil) | |
), | |
- $grammar.?SETFAIL($cursor, :$filename) | |
+ ($grammar.^find_method('SETFAIL').name eq 'SETFAIL' | |
+ ?? $grammar.SETFAIL($cursor, :$filename) | |
+ !! Nil) | |
) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment