diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-03-28 20:29:20 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-03-28 20:29:20 +0200 |
| commit | 7245bad9ebb58fc8ce5a322081fc6c39d2dc59c6 (patch) | |
| tree | 9019fdbab7696092551c3124391a4ec4df7bb262 /tests | |
| parent | a5ea0dcbc8b9343f6901654ad92de6ece156f954 (diff) | |
Parenthesize && expressions within || expressions
This is redundant from an evaluation perspective, as && has higher
precedence than ||, but is easier to read.
A && B || C && D is now rendered as "(A && B) || (C && D)".
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Kstr | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -30,7 +30,7 @@ config ADVANCED prompt "prompt 2" menuconfig ADVANCED - prompt "prompt 3" if DEP2 && (DEP3 || !DEP4 || !(DEP5 && DEP6)) + prompt "prompt 3" if DEP3 @@ -40,6 +40,8 @@ menu "foo" config ADVANCED help second help text + depends on A || !B || (C && D) || !(E && F) || G = H || \ + (I && !J && (K || L) && !(M || N) && O = P) endmenu |
