changeset 102126:69c0814ddb4e

(sh-font-lock-quoted-subshell): ' inside a "..." does not quote anything.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 19 Feb 2009 22:18:16 +0000
parents 057f38650810
children f90f4b810b03
files lisp/ChangeLog lisp/progmodes/sh-script.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Feb 19 22:14:12 2009 +0000
+++ b/lisp/ChangeLog	Thu Feb 19 22:18:16 2009 +0000
@@ -1,5 +1,8 @@
 2009-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* progmodes/sh-script.el (sh-font-lock-quoted-subshell): ' inside
+	a "..." does not quote anything.
+
 	* textmodes/rst.el (rst-mode-abbrev-table): Mark entries as `system'.
 
 2009-02-19  Andreas Schwab  <schwab@suse.de>
--- a/lisp/progmodes/sh-script.el	Thu Feb 19 22:14:12 2009 +0000
+++ b/lisp/progmodes/sh-script.el	Thu Feb 19 22:18:16 2009 +0000
@@ -1063,7 +1063,9 @@
                                (< (point) limit)))
         ;; unescape " inside a $( ... ) construct.
         (case (char-after)
-          (?\' (forward-char 1) (skip-chars-forward "^'" limit))
+          (?\' (case state
+                 (double-quote nil)
+                 (t (forward-char 1) (skip-chars-forward "^'" limit))))
           (?\\ (forward-char 1))
           (?\" (case state
                  (double-quote (setq state (pop states)))