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

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

Font-locking and single quotes in shell script mode


From: Romain Francoise
Subject: Font-locking and single quotes in shell script mode
Date: Sat, 08 Jul 2006 14:14:12 +0200

This change:

2005-11-27  Stefan Monnier  <address@hidden>

        * progmodes/sh-script.el (sh-font-lock-syntactic-keywords): \ doesn't
        escape single quotes.

causes a bug in sh-mode when the file contains something like the
following:

| $ cat foo.sh
| #!/bin/sh
| echo Don\'t do that
| echo "Let's do that instead"
| $

The single quote on the second line messes up fontification of the rest
of the file up to the next single quote.  Reverting sh-script.el to
revision 1.172 makes this test case work again.

Thanks,

-- 
Romain Francoise <address@hidden> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
                                        | ever free! --Bryan W. Procter




reply via email to

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