Skip to content

Commit

Permalink
Better form for slice notation with ZeroOrMore
Browse files Browse the repository at this point in the history
  • Loading branch information
ptmcg committed Apr 10, 2023
1 parent 4054216 commit 6f6e1db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES
Expand Up @@ -133,7 +133,7 @@ Version 3.1.0a1 - March, 2023
BEGIN, END = Keyword.using_each("BEGIN END".split())
body_word = Word(alphas)

expr = BEGIN + Group(body_word[:END]) + END
expr = BEGIN + Group(body_word[...:END]) + END
# equivalent to
# expr = BEGIN + Group(ZeroOrMore(body_word, stop_on=END)) + END

Expand Down

0 comments on commit 6f6e1db

Please sign in to comment.