forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit12b7164
committed
Remove precedence labeling of keywords TRUE, FALSE, UNKNOWN, and ZONE.
These were labeled with precedences just to avoid attaching explicitprecedences to the productions in which they were the last terminal symbol.Since a terminal symbol precedence marking can affect many other thingstoo, it seems like better practice to attach precedence labels to theproductions, and not mark the terminal symbols.Ideally we'd also remove the precedence attached to NULL_P, but it turnsout that we are actually depending on that having a precedence higher thanPOSTFIXOP, else we get a shift/reduce conflict for postfix operators inb_expr. (Which more or less proves my point about these markings having ahigh risk of unexpected consequences.) For the moment, move NULL_P intothe set of keywords grouped with IDENT, so that at least it will actsimilarly to non-keywords; and document the interaction.1 parent27525b1 commit12b7164
1 file changed
+14
-13
lines changedLines changed: 14 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
597 | 597 |
| |
598 | 598 |
| |
599 | 599 |
| |
600 |
| - | |
| 600 | + | |
| 601 | + | |
601 | 602 |
| |
602 | 603 |
| |
603 | 604 |
| |
| |||
610 | 611 |
| |
611 | 612 |
| |
612 | 613 |
| |
613 |
| - | |
| 614 | + | |
614 | 615 |
| |
615 | 616 |
| |
616 | 617 |
| |
617 |
| - | |
| 618 | + | |
618 | 619 |
| |
619 | 620 |
| |
620 | 621 |
| |
621 | 622 |
| |
622 |
| - | |
| 623 | + | |
623 | 624 |
| |
624 | 625 |
| |
625 | 626 |
| |
| |||
9705 | 9706 |
| |
9706 | 9707 |
| |
9707 | 9708 |
| |
9708 |
| - | |
| 9709 | + | |
9709 | 9710 |
| |
9710 | 9711 |
| |
9711 | 9712 |
| |
| |||
9887 | 9888 |
| |
9888 | 9889 |
| |
9889 | 9890 |
| |
9890 |
| - | |
| 9891 | + | |
9891 | 9892 |
| |
9892 | 9893 |
| |
9893 | 9894 |
| |
| |||
9901 | 9902 |
| |
9902 | 9903 |
| |
9903 | 9904 |
| |
9904 |
| - | |
| 9905 | + | |
9905 | 9906 |
| |
9906 | 9907 |
| |
9907 | 9908 |
| |
| |||
9919 | 9920 |
| |
9920 | 9921 |
| |
9921 | 9922 |
| |
9922 |
| - | |
| 9923 | + | |
9923 | 9924 |
| |
9924 | 9925 |
| |
9925 | 9926 |
| |
9926 | 9927 |
| |
9927 | 9928 |
| |
9928 | 9929 |
| |
9929 |
| - | |
| 9930 | + | |
9930 | 9931 |
| |
9931 | 9932 |
| |
9932 | 9933 |
| |
9933 | 9934 |
| |
9934 | 9935 |
| |
9935 | 9936 |
| |
9936 |
| - | |
| 9937 | + | |
9937 | 9938 |
| |
9938 | 9939 |
| |
9939 | 9940 |
| |
9940 | 9941 |
| |
9941 | 9942 |
| |
9942 | 9943 |
| |
9943 |
| - | |
| 9944 | + | |
9944 | 9945 |
| |
9945 | 9946 |
| |
9946 | 9947 |
| |
9947 | 9948 |
| |
9948 | 9949 |
| |
9949 | 9950 |
| |
9950 |
| - | |
| 9951 | + | |
9951 | 9952 |
| |
9952 | 9953 |
| |
9953 | 9954 |
| |
9954 | 9955 |
| |
9955 | 9956 |
| |
9956 | 9957 |
| |
9957 |
| - | |
| 9958 | + | |
9958 | 9959 |
| |
9959 | 9960 |
| |
9960 | 9961 |
| |
|
0 commit comments
Comments
(0)