From: Stefan Monnier Date: Sun, 27 Nov 2005 20:44:44 +0000 (+0000) Subject: (sh-font-lock-syntactic-keywords): \ doesn't escape single quotes. X-Git-Tag: emacs-pretest-22.0.90~5643 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ec121b963251ab28c0be548d3cf71f3da1e678a9;p=emacs.git (sh-font-lock-syntactic-keywords): \ doesn't escape single quotes. --- diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index f6928a72554..5728499db43 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -1002,6 +1002,8 @@ Point is at the beginning of the next line." ;; The list of special chars is taken from the single-unix spec ;; of the shell command language (under `quoting') but with `$' removed. `(("[^|&;<>()`\\\"' \t\n]\\(#+\\)" 1 ,sh-st-symbol) + ;; In a '...' the backslash is not escaping. + ("\\(\\\\\\)'" 1 ,sh-st-punc) ;; Make sure $@ and @? are correctly recognized as sexps. ("\\$\\([?@]\\)" 1 ,sh-st-symbol) ;; Find HEREDOC starters and add a corresponding rule for the ender.