diff --git a/docs/section-2-using-parsers.md b/docs/section-2-using-parsers.md index 06aa0c00..86b5d750 100644 --- a/docs/section-2-using-parsers.md +++ b/docs/section-2-using-parsers.md @@ -586,8 +586,10 @@ This pattern would match a set of possible keyword tokens, capturing them as `@k #### Wildcard Node -A wildcard node is represented with an underscore (`(_)`), it matches any node. +A wildcard node is represented with an underscore (`_`), it matches any node. This is similar to `.` in regular expressions. +There are two types, `(_)` will match any named node, +and `_` will match any named or anonymous node. For example, this pattern would match any node inside a call: