on master help sign in
Document @align indent capture.
commitee3171cc54052bc8d3569cc04bd9f6a57b43afca authorDaniel Ebert <daniel.ebert@protonmail.com> dateFri 11 Aug 2023, 13:12 (3 years ago) parentb315901
1 file changed+6
book/src/guides/indent.md+6
book/src/guides/indent.md+6
@@ -71,6 +71,12 @@ level for the line.
7171 ignored.
7272- `@outdent.always` (default scope `all`):
7373 Decrease the indent level by 1. The same rules as for `@indent.always` apply.
74+- `@align` (default scope `all`):
75+ Align everything inside this node to some anchor. The anchor is given
76+ by the start of the node captured by `@anchor` in the same pattern.
77+ Every pattern with an `@align` should contain exactly one `@anchor`.
78+ Indent (and outdent) for nodes below (in terms of their starting line)
79+ the `@align` node is added to the indentation required for alignment.
7480- `@extend`:
7581 Extend the range of this node to the end of the line and to lines that are
7682 indented more than the line that this node starts on. This is useful for