[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35646: In SQL mode /- incorrectly starts a comment

From: Michel de Ruiter
Subject: bug#35646: In SQL mode /- incorrectly starts a comment
Date: Thu, 9 May 2019 09:56:46 +0200


I found that both -* and /- incorrectly start a comment in SQL mode.
The -* combination starts a block comment, but cannot be valid SQL
syntax AFAIK. However /- can be and should not start a line comment as
it does now. The simplest example is:
  SELECT 1/-1
It took me a while (https://emacs.stackexchange.com/q/50375) to
understand that this is expected behavior given the
Of course using whitespace to separate / and -  'solves' the issue.
Someone might want to properly fix this using
syntax-propertize-function (as suggested by Stefan Monnier?,

Hope this helps!

Greets, Michel.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]