Update docs/section-2-using-parsers.md

Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Patrick Thomson 2020-10-23 15:11:23 -04:00 committed by GitHub
parent b42b873564
commit 4d8cdc2f36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`.