* 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
* Re: Shell-script mode: Backslash has syntax "punctuation", not "escape".
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
0 siblings, 1 reply; 5+ messages in thread
From: martin rudalics @ 2007-07-03 9:51 UTC (permalink / raw)
To: Alan Mackenzie; +Cc: emacs-devel
> Hi, Emacs!
Hi, Alan!
> 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.
>
Stefan fixed this in the trunk. Did you try with the latest sources?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Shell-script mode: Backslash has syntax "punctuation", not "escape".
2007-07-03 9:51 ` martin rudalics
@ 2007-07-03 12:06 ` Alan Mackenzie
2007-07-03 11:44 ` martin rudalics
0 siblings, 1 reply; 5+ messages in thread
From: Alan Mackenzie @ 2007-07-03 12:06 UTC (permalink / raw)
To: martin rudalics; +Cc: emacs-devel
Hi, Martin and everybody!
On Tue, Jul 03, 2007 at 11:51:17AM +0200, martin rudalics wrote:
> > Hi, Emacs!
> Hi, Alan!
> > 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.
> >
> Stefan fixed this in the trunk. Did you try with the latest sources?
No, I hadn't. I have now, and it works. Thanks! :-)
Apologies for the noise.
--
Alan.
^ 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.