changeset 67160:23ef368e1c3d

(sh-font-lock-syntactic-keywords): \ doesn't escape single quotes.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 27 Nov 2005 20:44:44 +0000
parents 4de8eb0fda27
children 759b69f39057
files lisp/progmodes/sh-script.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/sh-script.el	Sun Nov 27 19:29:09 2005 +0000
+++ b/lisp/progmodes/sh-script.el	Sun Nov 27 20:44:44 2005 +0000
@@ -1002,6 +1002,8 @@
   ;; 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.