diff options
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r-- | libbuild2/parser.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index da017d3..00366e6 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -1701,7 +1701,7 @@ namespace build2 // Parse a recipe chain. // // % [<attrs>] [<buildspec>] - // [if|switch ...] + // [if|if!|switch ...] // {{ [<lang> ...] // ... // }} @@ -2090,7 +2090,7 @@ namespace build2 // handy if we want to provide a custom recipe but only on certain // platforms or some such). - if (n == "if") + if (n == "if" || n == "if!") { parse_if_else (t, tt, true /* multi */, parse_block); continue; |