]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/reference/src/notation.md
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / doc / reference / src / notation.md
index 2f9b42f010a4f8f54eaf7ae7e05fe98c5f545a5f..cb3d8f60680cf65e153b61775e1c0ce8800aa360 100644 (file)
@@ -15,9 +15,9 @@ The following notations are used by the *Lexer* and *Syntax* grammar snippets:
 | x<sup>+</sup>     |  _MacroMatch_<sup>+</sup>     | 1 or more of x                            |
 | x<sup>a..b</sup>  | HEX_DIGIT<sup>1..6</sup>      | a to b repetitions of x                   |
 | \|                | `u8` \| `u16`, Block \| Item  | Either one or another                     |
-| [ ]               | [`b` `B`]                     | Any of the characters listed              |
-| [ - ]             | [`a`-`z`]                     | Any of the characters in the range        |
-| ~[ ]              | ~[`b` `B`]                    | Any characters, except those listed       |
+| \[ ]               | \[`b` `B`]                     | Any of the characters listed              |
+| \[ - ]             | \[`a`-`z`]                     | Any of the characters in the range        |
+| ~\[ ]              | ~\[`b` `B`]                    | Any characters, except those listed       |
 | ~`string`         | ~`\n`, ~`*/`                  | Any characters, except this sequence      |
 | ( )               | (`,` _Parameter_)<sup>?</sup> | Groups items                              |