Commit 8e9d823
committed
extend the parser's list of binary operators
This is still not perfect, and there is more to do, since as the
commentary notes
* unary operators are excluded for now
* assignment is used differently, but is included
* arrow operators should expect a literal on the RHS
* BETWEEN and CASE WHEN are more complex to handle in the same way
* IS and some other binary operators currently cause an infinite loop,
which we catch, but then get generic completions
But, this still improves our recognition of operators in context.
Operators taken from
* https://dev.mysql.com/doc/refman/9.6/en/built-in-function-reference.html
One xfailed test is included for the arrow-operator case.1 parent 724182f commit 8e9d823
3 files changed
Lines changed: 58 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
20 | 44 | | |
21 | 45 | | |
22 | 46 | | |
| |||
333 | 357 | | |
334 | 358 | | |
335 | 359 | | |
336 | | - | |
337 | | - | |
338 | 360 | | |
339 | 361 | | |
340 | 362 | | |
| |||
512 | 534 | | |
513 | 535 | | |
514 | 536 | | |
515 | | - | |
| 537 | + | |
516 | 538 | | |
517 | 539 | | |
518 | 540 | | |
519 | | - | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
520 | 550 | | |
521 | 551 | | |
522 | 552 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
129 | 150 | | |
130 | 151 | | |
131 | 152 | | |
| |||
418 | 439 | | |
419 | 440 | | |
420 | 441 | | |
| 442 | + | |
| 443 | + | |
421 | 444 | | |
422 | 445 | | |
423 | 446 | | |
| |||
0 commit comments