Fix previous sh-script.el font-lock #comment change

* lisp/progmodes/sh-script.el (sh-syntax-propertize-function): We
want to match "\ " before a comment; not a space character.
This commit is contained in:
Lars Ingebrigtsen 2019-10-30 22:06:18 +01:00
parent 77d4491391
commit f9ffb81fb8

View 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 [()].