From 12d3e1b89875653d05ec5741741b60fef559f6d8 Mon Sep 17 00:00:00 2001 From: Nokome Bentley Date: Mon, 26 Jul 2021 11:01:55 +1200 Subject: [PATCH] docs(Using parsers): Fix spelling, remove unusual keyword --- docs/section-2-using-parsers.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/section-2-using-parsers.md b/docs/section-2-using-parsers.md index 86b5d750..0d22f251 100644 --- a/docs/section-2-using-parsers.md +++ b/docs/section-2-using-parsers.md @@ -464,7 +464,7 @@ In general, it's a good idea to make patterns more specific by specifying [field #### Negated Fields -You can also constrain a pattern so that it only mathces nodes that *lack* a certain field. To do this, add a field name prefixed by a `!` within the parent pattern. For example, this pattern would match a class declaration with no type parameters: +You can also constrain a pattern so that it only matches nodes that *lack* a certain field. To do this, add a field name prefixed by a `!` within the parent pattern. For example, this pattern would match a class declaration with no type parameters: ``` (class_declaration @@ -572,7 +572,6 @@ This pattern would match a set of possible keyword tokens, capturing them as `@k ``` [ "break" - " atch" "delete" "else" "for" @@ -630,7 +629,7 @@ The restrictions placed on a pattern by an anchor operator ignore anonymous node #### Predicates -You can also specify arbitrary metadata and conditions associed with a pattern by adding _predicate_ S-expressions anywhere within your pattern. Predicate S-expressions start with a _predicate name_ beginning with a `#` character. After that, they can contain an arbitrary number of `@`-prefixed capture names or strings. +You can also specify arbitrary metadata and conditions associated with a pattern by adding _predicate_ S-expressions anywhere within your pattern. Predicate S-expressions start with a _predicate name_ beginning with a `#` character. After that, they can contain an arbitrary number of `@`-prefixed capture names or strings. For example, this pattern would match identifier whose names is written in `SCREAMING_SNAKE_CASE`: