-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL 语句前面存在空白行时,错误提示未能在正确的位置显示 #12
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
当 SQL 语句前面存在空白行时,解析结果中的 error.suggestions.token 为
null
,导致无法正确提示发生错误的位置,现象如下:解析结果如下:
Demo 中关于错误提示位置的处理:
syntax-parser/src/demo/monaco-plugin/index.ts
Lines 60 to 72 in 5818f52
期望结果:
未完整的语句,error.suggestion.token 能给出错误位置的token,如
{type: "string", value: "selec", position: [1, 6]}
The text was updated successfully, but these errors were encountered: