We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cfg(true)
cfg(false)
1 parent f313a01 commit 2908ab9Copy full SHA for 2908ab9
src/conditional-compilation.md
@@ -8,6 +8,8 @@ ConfigurationPredicate ->
8
| ConfigurationAll
9
| ConfigurationAny
10
| ConfigurationNot
11
+ | `true`
12
+ | `false`
13
14
ConfigurationOption ->
15
IDENTIFIER ( `=` ( STRING_LITERAL | RAW_STRING_LITERAL ) )?
@@ -50,6 +52,9 @@ r[cfg.predicate.any]
50
52
r[cfg.predicate.not]
51
53
* `not()` with a configuration predicate. It is true if its predicate is false and false if its predicate is true.
54
55
+r[cfg.predicate.literal]
56
+* `true` or `false` literals, which are always true or false respectively.
57
+
58
r[cfg.option-spec]
59
_Configuration options_ are either names or key-value pairs, and are either set or unset.
60
0 commit comments