Skip to content

Commit

Permalink
Merge pull request #1508 from lark-parser/fix1507
Browse files Browse the repository at this point in the history
[docs] Small fix for PR 1507
  • Loading branch information
erezsh authored Jan 21, 2025
2 parents 08c9193 + f4f476d commit 5499f10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ Each item is one of:
* `item ~ n` - Exactly *n* instances of item
* `item ~ n..m` - Between *n* to *m* instances of item (not recommended for wide ranges, due to performance issues)
Note that all operators, including `~ n`, apply directly to the item on their left.
For instance `a ~ 2 b ~ 3` is parsed as `(a ~ 2) (b ~ 3)`.
**Examples:**
```perl
hello_world: "hello" "world"
Expand Down

0 comments on commit 5499f10

Please sign in to comment.