emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master b996117 1/2: font-lock \ #foo in shell mode more correctly


From: Lars Ingebrigtsen
Subject: master b996117 1/2: font-lock \ #foo in shell mode more correctly
Date: Wed, 30 Oct 2019 10:39:59 -0400 (EDT)

branch: master
commit b996117fe5d561d86665c23f7012871e345a6e77
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    font-lock \ #foo in shell mode more correctly
    
    * lisp/progmodes/sh-script.el (sh-syntax-propertize-function):
    \ #foo isn't a comment -- it's a symbol that starts with a space
    character (bug#17538).
---
 lisp/progmodes/sh-script.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 8177329..62e4e5c 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -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 [()].



reply via email to

[Prev in Thread] Current Thread [Next in Thread]