Optional multispace when next to parenthesis
ivanceras opened this issue · comments
These 2 queries
INSERT INTO user(name, password) VALUES('aaa','xxx');
INSERT INTO user (name, password) VALUES ('aaa','xxx');
are both valid, but nom-sql
only parses the 2nd correctly.
I'm guessing this is a bit of complex to do in nom
, where the multispace
becomes optional when tag!('(')
is in the next few bytes.
Lines 23 to 40 in 8fe4e92
No underlying nom
-related reason, just unawareness on my part that this is permitted!
(multispace?
generally works fine for an optional space)
I thought the solution was more complicated than that.