Skip to content

Commit 633dd23

Browse files
committed
fix grammar to allow (|) but not sure how this is useful (fixes #319)
1 parent 129d535 commit 633dd23

File tree

5 files changed

+129
-76
lines changed

5 files changed

+129
-76
lines changed

include/ctre/pcre.gram

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ S-><content> | epsilon,[push_empty] | pipe,[push_empty],<content>,[make_alternat
3838

3939
content-><string>,<content2>
4040
content_in_capture-><string_in_capture>,<content2> | epsilon,[push_empty]
41-
content_in_capture->pipe,[push_empty],<content>,[make_alternate]
41+
content_in_capture->pipe,[push_empty],<content_or_empty>,[make_alternate]
42+
content_or_empty-><content> | epsilon,[push_empty]
4243

4344
content2->pipe,<content>,[make_alternate] |pipe,[push_empty],[make_alternate] | epsilon
4445

0 commit comments

Comments
 (0)