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 de3c519 commit 9a65d79Copy full SHA for 9a65d79
src/Regex/Cursor.pir
@@ -645,13 +645,16 @@ with a "real" Match object when requested.
645
.sub '!cursor_pass' :method :subid('Regex_Cursor_meth_!cursor_pass') :outer('Regex_Cursor_Body')
646
.param int pos
647
.param string name
648
+ .param pmc match :optional
649
+ .param int has_match :opt_flag
650
651
.local pmc cur_class
652
cur_class = find_lex '$?CLASS'
653
654
repr_bind_attr_int self, cur_class, '$!pos', pos
- .local pmc match
655
+ if has_match goto have_match
656
match = get_global '$!TRUE'
657
+ have_match:
658
setattribute self, cur_class, '$!match', match
659
unless name goto done
660
self.'!reduce'(name)
0 commit comments