Commit b0954a2
committed
Fix NOT operator precedence with parenthesized expressions
When NOT is followed by a parenthesized expression, use UNARY precedence
so binary operators after the group don't continue as part of the NOT
operand. This ensures:
- NOT (0) + 1 parses as (NOT(0)) + 1
- NOT 0 + 1 parses as NOT(0 + 1)
Enables test 02920_unary_operators_functions.1 parent 39de90f commit b0954a2
File tree
2 files changed
+10
-2
lines changed- parser
- testdata/02920_unary_operators_functions
2 files changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
812 | | - | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
813 | 821 | | |
814 | 822 | | |
815 | 823 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments