Kakoune: SQL syntax highlighting broken for function invocation.

Created on 8 Oct 2020  路  1Comment  路  Source: mawww/kakoune

Steps

  1. Create a SQL file with this content:
    sql SELECT NOW(); SELECT foo FROM bar;
  2. Open up the file in Kakoune with syntax highlighting for sql filetype enabled.

Outcome

After the first function invocation of NOW(), all regular text that shouldn't be highlighted (in this case foo and bar) is turned grey (or a different color other than white/the default).
See screenshot:
Screenshot_20201008_155028

Expected

I would expect that the grey (or other color depending on colorscheme) color would only be limited to the NOW() text and not any of the regular statements after it that are unworthy of being highlighted. This is what normal highlighting with the Mysticaltutor theme looks like:
Screenshot_20201008_155129

Notes

  • With other color schemes the contrast is much more stark. Compare the two:
    Screenshot_20201008_155422
    Screenshot_20201008_155457
  • If a string is given as an argument to the function then the function highlighting doesn't work at all:
    Screenshot_20201008_155641
bug

Most helpful comment

Unless someone is leaping for joy at the opportunity to take this one, I'll go ahead and submit a PR for it this week.

>All comments

Unless someone is leaping for joy at the opportunity to take this one, I'll go ahead and submit a PR for it this week.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abitofalchemy picture abitofalchemy  路  3Comments

notramo picture notramo  路  3Comments

lenormf picture lenormf  路  4Comments

a12l picture a12l  路  3Comments

lenormf picture lenormf  路  3Comments