aboutsummaryrefslogtreecommitdiff
path: root/book/src
diff options
context:
space:
mode:
authorDaniel Ebert2022-09-17 13:03:39 +0000
committerBlaž Hrastnik2022-10-11 07:48:04 +0000
commitdc443487d4be520efb667f9f93b6c3cbd22e81fd (patch)
tree1352603c12cc99aaac0dd3462b742333f3ed3520 /book/src
parent2b02785f19cd98d1e943f311377d76ae2dd58cff (diff)
Slightly change the behavior of the `@stop-extend` capture.
This improves the behavior in case of multiple nested extensions.
Diffstat (limited to 'book/src')
-rw-r--r--book/src/guides/indent.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/book/src/guides/indent.md b/book/src/guides/indent.md
index c9306a10..13550846 100644
--- a/book/src/guides/indent.md
+++ b/book/src/guides/indent.md
@@ -54,10 +54,11 @@ for languages like Python, where for the purpose of indentation some nodes
- `@stop-extend`:
Prevents the first extension of an ancestor of this node. For example, in Python
-a return expression always ends the block that it is in. Note that this only prevents
-the next extension of one ancestor: If multiple ancestors can be extended (for example
-multiple nested conditional blocks in python), only the extension of the innermost
-ancestor is prevented.
+a return expression always ends the block that it is in. Note that this only stops the
+extension of the next `@extend-indented` capture. If multiple ancestors are captured,
+only the extension of the innermost one is prevented. All other ancestors are unaffected
+(regardless of whether the innermost ancestor would actually have been extended).
+
## Predicates