bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Error in SQL parsing?


From: Stefan Monnier
Subject: Re: Error in SQL parsing?
Date: 01 Nov 2001 19:21:11 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.50

>> From what I was told, and then going from memory on top of that, the
>> backslash is an escape character for error handling sections, for things
>> like \n to produce a newline, stuff like that.  But it's a perfectly valid
>> character inside a string.

I don't know SQL (but am quite familiar with syntax-table related
problems like the above ;-), so could anybody tell me really in what
cases does \ escape the following character in SQL ?
For \n, it's not important whether Emacs knows that the `n' is escaped
(it usually treats an escaped char pretty much like a normal letter
anyway).

Usually, the important cases where Emacs needs to know about
escaping is when the escape char (i.e. \) can be used to insert
a string delimiter inside a string (like "foo\"bar"), but
if that never happens in SQL, then sql-mode should probably not
set \ to "escape syntax".


        Stefan



reply via email to

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