Skip to content

Commit 160ff42

Browse files
committed
Add Cut
1 parent 3f3a0db commit 160ff42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/reference/grammar.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ except for a few extra complications:
1515
* ``&e``: a positive lookahead (that is, ``e`` is required to match but
1616
not consumed)
1717
* ``!e``: a negative lookahead (that is, ``e`` is required *not* to match)
18+
* ``~`` ("cut"): commit to the current alternative, even if it fails to parse
1819

1920
.. literalinclude:: ../../Grammar/python.gram
2021
:language: peg

0 commit comments

Comments
 (0)