Commit cb25e96
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 3c61db5 commit cb25e96
1 file changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1326 | 1326 | | |
1327 | 1327 | | |
1328 | 1328 | | |
1329 | | - | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
1330 | 1334 | | |
1331 | 1335 | | |
1332 | 1336 | | |
| |||
3964 | 3968 | | |
3965 | 3969 | | |
3966 | 3970 | | |
| 3971 | + | |
| 3972 | + | |
| 3973 | + | |
| 3974 | + | |
| 3975 | + | |
| 3976 | + | |
| 3977 | + | |
| 3978 | + | |
| 3979 | + | |
| 3980 | + | |
| 3981 | + | |
| 3982 | + | |
| 3983 | + | |
| 3984 | + | |
| 3985 | + | |
| 3986 | + | |
| 3987 | + | |
| 3988 | + | |
3967 | 3989 | | |
3968 | 3990 | | |
3969 | 3991 | | |
| |||
0 commit comments