Skip to content

Commit d3e2edf

Browse files
committed
Grammar for all() and any() cfg preds plus remove stray commas
1 parent bbab43f commit d3e2edf

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/conditional-compilation.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111
> &nbsp;&nbsp; [IDENTIFIER]&nbsp;(`=` ([STRING_LITERAL] | [RAW_STRING_LITERAL]))<sup>?</sup>
1212
>
1313
> _ConfigurationAll_\
14-
> &nbsp;&nbsp; `all` `(` _ConfigurationPredicate_ (`,` _ConfigurationPredicate_)<sup>\*</sup> `,`<sup>?</sup> `)`
14+
> &nbsp;&nbsp; `all` `(` _ConfigurationPredicateList_<sup>?</sup> `)`
1515
>
1616
> _ConfigurationAny_\
17-
> &nbsp;&nbsp; `any` `(` _ConfigurationPredicate_ (`,` _ConfigurationPredicate_)<sup>\*</sup> `,`<sup>?</sup> `)`
17+
> &nbsp;&nbsp; `any` `(` _ConfigurationPredicateList_<sup>?</sup> `)`
1818
>
1919
> _ConfigurationNot_\
2020
> &nbsp;&nbsp; `not` `(` _ConfigurationPredicate_ `)`
21+
>
22+
> _ConfigurationPredicateList_\
23+
> &nbsp;&nbsp; _ConfigurationPredicate_ (`,` _ConfigurationPredicate_)<sup>\*</sup> `,`<sup>?</sup>
2124
2225
*Conditionally compiled source code* is source code that may or may not be
2326
considered a part of the source code depending on certain conditions. <!-- This
@@ -79,12 +82,12 @@ identical.
7982

8083
Example values:
8184

82-
* `"x86"`,
85+
* `"x86"`
8386
* `"x86_64"`
8487
* `"mips"`
8588
* `"powerpc"`
8689
* `"powerpc64"`
87-
* `"arm"`,
90+
* `"arm"`
8891
* `"aarch64"`
8992

9093
### `target_os`

0 commit comments

Comments
 (0)