diff --git a/util/newconfig/config.g b/util/newconfig/config.g index 6fff45722c..e67ffdb53c 100644 --- a/util/newconfig/config.g +++ b/util/newconfig/config.g @@ -934,6 +934,7 @@ parser Config: token DEP: 'dep' token DIR: 'dir' token DRIVER: 'driver' + token ELSE: 'else' token END: '$|end' token EQ: '=' token EXPORT: 'export' @@ -1040,7 +1041,7 @@ parser Config: # needs to be C and ID, but nested if's are, we hope, not going to # happen. IF so, possibly ID && C could be used. rule iif<>: IF ID {{ c = lookup(ID) }} - (stmt<>)* END + (stmt<>)* [ ELSE (stmt<>)* ] END rule depsacts<>: ( DEP STR {{ if (C): adddep(ID, STR) }} @@ -1098,7 +1099,7 @@ parser Config: rule option<>: OPTION ID EQ value {{ if (C): setoptionstmt(ID, value) }} rule opif: IF ID {{ c = lookup(ID) }} - (option<>)* END + (option<>)* [ ELSE (option<>)* ] END rule opstmt: option<<1>> | opif