]> git.eshelyaron.com Git - emacs.git/commitdiff
(sh-font-lock-syntactic-keywords): \ doesn't escape single quotes.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 27 Nov 2005 20:44:44 +0000 (20:44 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 27 Nov 2005 20:44:44 +0000 (20:44 +0000)
lisp/progmodes/sh-script.el

index f6928a7255494167c294fb18663b4bf27a822f3c..5728499db437751dadcef84a1fc0049815c32854 100644 (file)
@@ -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.