all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Shell-script mode: Backslash has syntax "punctuation", not "escape".
@ 2007-07-03 10:15 Alan Mackenzie
  2007-07-03  9:51 ` martin rudalics
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Mackenzie @ 2007-07-03 10:15 UTC (permalink / raw)
  To: emacs-devel

Hi, Emacs!

Load the following file into Emacs:

#########################################################################
#!/bin/bash
echo Backslash doesn\'t have escape syntax.
# The rest of the file now has string fontification.
#########################################################################

Font locking doesn't take the backslash in "doesn\'t" seriously.  A
quick C-u C-x = on this backslash shows it has "." (punctuation) syntax.

In Emacs 21, backslash has "\\" (escape) syntax, and this fragment
fontifies properly there.

Not giving backslash escape syntax seems wierd, so wierd that it was
surely done deliberately for a good reason.  Can anybody tell me what
this reason was?

Whatever, it would seem that the Font Locking in this mode needs fixing.

-- 
Alan Mackenzie (Ittersbach, Germany).

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

end of thread, other threads:[~2007-07-23  5:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-03 10:15 Shell-script mode: Backslash has syntax "punctuation", not "escape" Alan Mackenzie
2007-07-03  9:51 ` martin rudalics
2007-07-03 12:06   ` Alan Mackenzie
2007-07-03 11:44     ` martin rudalics
2007-07-23  5:45       ` Stefan Monnier

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.