-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 highlighting fails for INSERT ... SET
, INSERT ... VALUES
with multiple records, and GROUP_CONCAT
with SEPARATOR
#5186
Comments
INSERT ... SET
, INSERT ... VALUES
with multiple records, and GROUP_CONCAT
with SEPARATOR
I'd start by upgrading https://github.com/DerekStride/tree-sitter-sql to the latest revision. If that doesn't fix it it'll need to be reported upstream |
#5071 is possibly related. Although the issue itself is very different the issue was solved by upgrading the parser. Perhaohs that helps here aswell as the current version is known to be buggy |
Notably, like mentioned in #5071 I also experienced terrible input delays (hangs in insert mode) while working on an SQL file of only a few kilobytes. (Containing variants of the mis-highlighted syntax extracted above.) |
I tested with helix latest master and updated tree-sitter-sql to latet master as well (+ grammar fetch & build). I reported the issue upstream at DerekStride/tree-sitter-sql#67 |
There is another weird behavior. Do you guys see this as a possible helix bug? The effect is unstable and highlighting switches between correct and incorrect just by e.g. adding white space characters or doing other non-syntax editing. I described it in DerekStride/tree-sitter-sql#67 (comment) |
Summary
Example SQL:
INSERT INTO ... SET ...
syntax:helix 22.12: String value does not get highlight:
INSERT INTO ... (...) VALUES (...)
syntax with multiple values records:helix 22.12: Values of second record do not get highlight:
GROUP_CONCAT
withSEPARATOR
:helix 22.12: Separator string appears to not be expected (only
","
should be yellow):Theme for all screenshots:
monokai_pro_spectrum
Reproduction Steps
I tried this:
Typed the above SQL queries (MySQL dialect) into helix.
Alternatively, copy-paste and use
:set-language sql
or write to an*.sql
file.I expected this to happen:
Proper highlighting (see GitHub highlight above).
Instead, this happened:
Erratic highlighting (see helix screenshots above).
Helix log
(nothing relevant in the helix log)
Platform
openSUSE Tumbleweed
Terminal Emulator
konsole
Helix Version
22.12
The text was updated successfully, but these errors were encountered: