Skip to content

Commit

Permalink
Document @align indent capture.
Browse files Browse the repository at this point in the history
  • Loading branch information
Triton171 authored and archseer committed Aug 11, 2023
1 parent b315901 commit ee3171c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions book/src/guides/indent.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ level for the line.
ignored.
- `@outdent.always` (default scope `all`):
Decrease the indent level by 1. The same rules as for `@indent.always` apply.
- `@align` (default scope `all`):
Align everything inside this node to some anchor. The anchor is given
by the start of the node captured by `@anchor` in the same pattern.
Every pattern with an `@align` should contain exactly one `@anchor`.
Indent (and outdent) for nodes below (in terms of their starting line)
the `@align` node is added to the indentation required for alignment.
- `@extend`:
Extend the range of this node to the end of the line and to lines that are
indented more than the line that this node starts on. This is useful for
Expand Down

0 comments on commit ee3171c

Please sign in to comment.