Skip to content

Commit 2a62276

Browse files
committed
Call $ident a "macro metavariable" in the index
On the branch, in the syntax index, we had called `$ident` a "macro fragment substitution". The way that I think about it is that `$ident` is a macro metavariable that is bound to a fragment. That is, the metavariable is the parameter while the fragment is the argument. That's why a "macro matcher fragment specifier" makes sense -- we're specifying the kind of the fragment that can be bound to this macro metavariable in the matcher. In this light, let's call `$ident` simply a "macro metavariable" in the syntax index.
1 parent a31a5d0 commit 2a62276

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/syntax-index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ This appendix provides an index of tokens and common forms with links to where t
149149
| Syntax | Usage |
150150
|-------------------------------------------|-------|
151151
| `ident!(…)`<br>`ident!{…}`<br>`ident![…]` | [macro invocations] |
152-
| `$ident` | [macro fragment substitution] |
152+
| `$ident` | [macro metavariable] |
153153
| `$ident:kind` | [macro matcher fragment specifier] |
154154
| `$(…)…` | [macro repetition] |
155155

@@ -354,10 +354,10 @@ This appendix provides an index of tokens and common forms with links to where t
354354
[lifetimes and loop labels]: lex.token.life
355355
[literal patterns]: patterns.literal
356356
[macro calls]: macro.invocation
357-
[macro fragment substitution]: macro.decl.meta.transcription
358357
[macro invocations]: macro.invocation
359358
[macro Kleene matcher]: macro.decl.repetition
360359
[macro matcher fragment specifier]: macro.decl.meta.specifier
360+
[macro metavariable]: macro.decl.meta
361361
[macro repetition]: macro.decl.repetition
362362
[macros by example]: macro.decl
363363
[macros]: macro.decl

0 commit comments

Comments
 (0)