-
Notifications
You must be signed in to change notification settings - Fork 47
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
这个提示好像有点怪怪的,应该和语法文件的实现有关 #161
Comments
dt-sql-parser 将语句识别为一个 singleStatement 也就是一条完整语句时,会自动断句,并不强制要求写分号。但在部分场景中,会依赖分号进行切分,比如正在进行的两个 PR: |
好的,谢谢,我去看看 |
如果要临时解决,可以尝试根据输入上下文自行剔除,可以参考c3中如何处理上下文信息的 antlr4-c3 |
其实我现在的做法遇到需要用户自定义的id规则就全部直接不返回任何提示 |
这里看到写了一个简单的查询语句,但是我没有写分号,这一块就已经开始提示
create
这个关键字了,这个应该和语法文件的规则有关系吧,语法文件中似乎并没有强制需要分号作为语句的结束符,所以他就识别到新的sql开始去了,所以就会有这个关键字了对吗?这个我也不是很清楚是不是一个bug,希望可以讨论一下
The text was updated successfully, but these errors were encountered: