From 4d8cdc2f368c127fcb439309a9b78d9a889fdf6e Mon Sep 17 00:00:00 2001 From: Patrick Thomson Date: Fri, 23 Oct 2020 15:11:23 -0400 Subject: [PATCH] Update docs/section-2-using-parsers.md Co-authored-by: Max Brunsfeld --- docs/section-2-using-parsers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/section-2-using-parsers.md b/docs/section-2-using-parsers.md index 3b2f282a..7166c776 100644 --- a/docs/section-2-using-parsers.md +++ b/docs/section-2-using-parsers.md @@ -596,7 +596,7 @@ When `.` is placed before the _first_ child within a parent pattern, the child w (array . (identifier) @the-element) ``` -Were this anchor operator elided, the pattern would match once for every identifier in the array, with `@the-element` bound to each matched identifier. +Without this anchor, the pattern would match once for every identifier in the array, with `@the-element` bound to each matched identifier. Similarly, an anchor placed after a pattern's _last_ child will cause that child pattern to only match nodes that are the last named child of their parent. The below pattern matches only nodes that are the last named child within a `block`.