Skip to content

Commit 5499f10

Browse files
authored
Merge pull request #1508 from lark-parser/fix1507
[docs] Small fix for PR 1507
2 parents 08c9193 + f4f476d commit 5499f10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/grammar.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ Each item is one of:
239239
* `item ~ n` - Exactly *n* instances of item
240240
* `item ~ n..m` - Between *n* to *m* instances of item (not recommended for wide ranges, due to performance issues)
241241
242+
Note that all operators, including `~ n`, apply directly to the item on their left.
243+
For instance `a ~ 2 b ~ 3` is parsed as `(a ~ 2) (b ~ 3)`.
244+
242245
**Examples:**
243246
```perl
244247
hello_world: "hello" "world"

0 commit comments

Comments
 (0)