From ec121b963251ab28c0be548d3cf71f3da1e678a9 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 27 Nov 2005 20:44:44 +0000 Subject: [PATCH] (sh-font-lock-syntactic-keywords): \ doesn't escape single quotes. --- lisp/progmodes/sh-script.el | 2 ++ 1 file changed, 2 insertions(+) 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. -- 2.39.2