[config] fix conditional parsing

conditional expressions include values to compare with; any
  complicated value expression must be put into parantheses.
  -> stop parsing after a simple value, don't search for operators,
     "and"/"or" operators are handled by the conditional
personal/stbuehler/wip
Stefan Bühler 9 years ago
parent db58828e0b
commit ec6600271a

@ -1693,7 +1693,7 @@ static gboolean p_condition_value(liConditionTree **tree, liConfigTokenizerConte
goto error;
}
if (!p_value(&key_value_nesting, &rvalue, TK_OR, ctx, error)) goto error;
if (!p_value(&key_value_nesting, &rvalue, TK_NOT, ctx, error)) goto error;
switch (li_value_type(rvalue)) {
case LI_VALUE_STRING:

Loading…
Cancel
Save