Skip to content

Commit

Permalink
Minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasC committed Sep 18, 2024
1 parent 90c8ecb commit 4c93b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ A rule consists of a pattern and an effect. For each cursor position and rule, t

* `~a` — optionally `a` (always succeeds)
* `a++` — zero or more `a`
* Note that `a++` is greedy and that matching does not backtrack. For example, `Any++ * T(Bar)` will not match `Foo Foo Bar` since `Any++` consumes all three terms. To simulate backtracking, use negative lookahead: `(Any * --T(Bar))++ * T(Bar)`
* Note that `a++` is greedy and that matching does not backtrack. For example, `Any++ * T(Bar)` will not match `Foo Foo Bar` since `Any++` consumes all three terms. In order to simulate backtracking, use negative lookahead: `(Any * --T(Bar))++ * Any * T(Bar)`

* `a[Name]` — match `a` and bind result to `Name` (`Name` must be a token)
* `a(f)` — match `a` and require that `f` returns true for the terms selected by `a`
Expand Down

0 comments on commit 4c93b24

Please sign in to comment.