kezhenxu94 / vim-mysql-plugin

VIM MySQL Plugin
Apache License 2.0
21 stars 6 forks source link

BugFix: ignore comments in rr command #2

Closed jfecher closed 5 years ago

jfecher commented 5 years ago

Currently, queries such as:

select *  -- do a select
from table;

have any lines containing comments ignored, rather than having just the comment itself ignored. This comment fixes the query parsing to change what was previously parsed as "from table;" to "select * from table;"

kezhenxu94 commented 5 years ago

Thanks for fixing this, I'll merge it after reviewing

kezhenxu94 commented 5 years ago

@jfecher I've merged this PR and do some minor fixes, please be sure to pull before you open the next PR, thanks.