all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#35646: In SQL mode /- incorrectly starts a comment
@ 2019-05-09  7:56 Michel de Ruiter
  2019-10-27 20:48 ` Kristian Hole
  0 siblings, 1 reply; 4+ messages in thread
From: Michel de Ruiter @ 2019-05-09  7:56 UTC (permalink / raw)
  To: 35646

Hi,

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
sql-mode-syntax-table.
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?,
https://emacs.stackexchange.com/a/50399).

Hope this helps!

Greets, Michel.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-10 11:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-09  7:56 bug#35646: In SQL mode /- incorrectly starts a comment Michel de Ruiter
2019-10-27 20:48 ` Kristian Hole
2020-01-20 19:44   ` Stefan Kangas
2020-08-10 11:25   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.