# HG changeset patch # User Stefan Monnier # Date 1133124284 0 # Node ID 23ef368e1c3d8c05e7f3d8280b194c18b2594128 # Parent 4de8eb0fda27b2774fe7adb825dd6a9f71f68581 (sh-font-lock-syntactic-keywords): \ doesn't escape single quotes. diff -r 4de8eb0fda27 -r 23ef368e1c3d lisp/progmodes/sh-script.el --- 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.