Commit bebc159
committed
Tokenize empty line comments correctly
MySQL likes to send "blocky" comments where a line comment is surrounded by empty comments, like so:
```
--
-- Table structure for table `foo`
--
CREATE TABLE ...
```
Currently, these comments are tokenized as MINUS, MINUS instead of an empty line comment.
This commits fixes this problem by accepting any kind of whitespace to delimit a line comment.1 parent 44c4023 commit bebc159
1 file changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1387 | 1387 | | |
1388 | 1388 | | |
1389 | 1389 | | |
1390 | | - | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
1391 | 1395 | | |
1392 | 1396 | | |
1393 | 1397 | | |
| |||
4069 | 4073 | | |
4070 | 4074 | | |
4071 | 4075 | | |
| 4076 | + | |
| 4077 | + | |
| 4078 | + | |
| 4079 | + | |
| 4080 | + | |
| 4081 | + | |
| 4082 | + | |
| 4083 | + | |
| 4084 | + | |
| 4085 | + | |
| 4086 | + | |
| 4087 | + | |
| 4088 | + | |
| 4089 | + | |
| 4090 | + | |
| 4091 | + | |
| 4092 | + | |
| 4093 | + | |
4072 | 4094 | | |
4073 | 4095 | | |
4074 | 4096 | | |
| |||
0 commit comments