inferrinizzard / prettier-sql

[ARCHIVED] Please use https://github.com/sql-formatter-org/sql-formatter
https://github.com/sql-formatter-org/sql-formatter
MIT License
21 stars 5 forks source link

Return token when pair not closed #71

Open marten-cz opened 2 years ago

marten-cz commented 2 years ago

When something is not closed the tokenizer will try to find next token but will fail. Better to return what was parsed then to fail with error.

inferrinizzard commented 2 years ago

Would you mind adding a unit test that shows an example of an unclosed pair ?