Skip to content

Commit 87f527b

Browse files
Add an anchor to the "forwarding macro fragments" paragraph
Since this is a subtle idiosyncracy into which macro users sometimes bump, it can be incredibly help ful to give them a pin-pointed link to the exact paragraph talking about this. Hence the idea of adding some kind of header, and thus an anchor, to it. Since it's just a paragraph, I've gone for a very low header, such as h4. cc @Nilstrieb
1 parent 9f0cc13 commit 87f527b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/macros-by-example.md

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ delimiters for the matcher will match any pair of delimiters. Thus, for
7676
instance, the matcher `(())` will match `{()}` but not `{{}}`. The character
7777
`$` cannot be matched or transcribed literally.
7878

79+
#### Forwarding a matched fragment
80+
7981
When forwarding a matched fragment to another macro-by-example, matchers in
8082
the second macro will see an opaque AST of the fragment type. The second macro
8183
can't use literal tokens to match the fragments in the matcher, only a

0 commit comments

Comments
 (0)