Skip to content

Commit d565a90

Browse files
committed
Replace <.throw_null_pattern> on regex infixes
1 parent 05b0c30 commit d565a90

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/QRegex/P6Regex/Grammar.nqp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,22 +129,22 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
129129

130130
token termaltseq {
131131
<termconjseq>
132-
[ '||' <.ws> { $*SEQ := 1; } <termconjseq> ]*
132+
[ '||' <.ws> [ { $*SEQ := 1; } <termconjseq> || <.throw_null_pattern> ] ]*
133133
}
134134

135135
token termconjseq {
136136
<termalt>
137-
[ '&&' <.ws> { $*SEQ := 0; } <termalt> ]*
137+
[ '&&' <.ws> [ { $*SEQ := 0; } <termalt> || <.throw_null_pattern> ] ]*
138138
}
139139

140140
token termalt {
141141
<termconj>
142-
[ '|' <![|]> <.ws> { $*SEQ := 0; } <termconj> ]*
142+
[ '|' <![|]> <.ws> [ { $*SEQ := 0; } <termconj> || <.throw_null_pattern> ] ]*
143143
}
144144

145145
token termconj {
146146
<termish>
147-
[ '&' <![&]> <.ws> { $*SEQ := 0; } <termish> ]*
147+
[ '&' <![&]> <.ws> [ { $*SEQ := 0; } <termish> || <.throw_null_pattern> ] ]*
148148
}
149149

150150
token termish {

0 commit comments

Comments
 (0)