Skip to content

Commit

Permalink
Moved reference sheet to docs folder
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasC committed Sep 18, 2024
1 parent 4c93b24 commit eab5474
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/reference.md → docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A rule consists of a pattern and an effect. For each cursor position and rule, t
### Patterns

* `T(tok)` — a single term with token tok
* `T(tok1, .., tokn)` — a single term with token in tok1, .., tokn
* `T(tok1, .., tokn)` — a single term with one of the specified tokens
* `Any` — any single term

* `!a` — not a
Expand All @@ -40,8 +40,8 @@ A rule consists of a pattern and an effect. For each cursor position and rule, t
* `++a` — matches if `a` matches, but does not select anything
* `--a` — matches if `a` does not match, but does not select anything

* `In(tok1, ..., tokn)` — matches if cursor is directly inside a term with one of the listed tokens
* `In(tok1, ..., tokn)++` — matches if cursor is nested inside a term with one of the listed tokens (directly or recursively)
* `In(tok1, .., tokn)` — matches if cursor is directly inside a term with one of the listed tokens
* `In(tok1, .., tokn)++` — matches if cursor is nested inside a term with one of the listed tokens (directly or recursively)

* `Start` — matches if the cursor is before the first child of a term
* `End` — matches if the cursor is after the last child of a term
Expand Down

0 comments on commit eab5474

Please sign in to comment.