]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix previous sh-script.el font-lock #comment change
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 30 Oct 2019 21:06:18 +0000 (22:06 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 30 Oct 2019 21:06:18 +0000 (22:06 +0100)
* lisp/progmodes/sh-script.el (sh-syntax-propertize-function): We
want to match "\ " before a comment; not a space character.

lisp/progmodes/sh-script.el

index 62e4e5c49e0aedb2f8bcda6361b18a61a3d1094b..b2f896ecab9a19c5610b7552f7542adb42ba757c 100644 (file)
@@ -1141,7 +1141,7 @@ subshells can nest."
     ;; metacharacters.  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 "_"))
+    ("\\(?:[^|&;<>(`\\\"' \t\n]\\|\\${\\|\\\\ \\)\\(#+\\)" (1 "_"))
     ;; In addition, `#' at the beginning of closed parentheses
     ;; does not start a comment if the parentheses are not isolated
     ;; by metacharacters, excluding [()].