emacs-diffs
[Top][All Lists]
Advanced

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

master c963672 3/5: Allow @ characters in heredoc in shell-script-mode


From: Lars Ingebrigtsen
Subject: master c963672 3/5: Allow @ characters in heredoc in shell-script-mode
Date: Mon, 20 Dec 2021 23:26:15 -0500 (EST)

branch: master
commit c9636727363a0f0ecd8b2dd2cc6eebf9470e71f2
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Allow @ characters in heredoc in shell-script-mode
    
    * lisp/progmodes/sh-script.el (defconst): Also allow @ in heredoc
    (bug#52496).
---
 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 92326d0..0ff6aec 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -864,7 +864,7 @@ See `sh-feature'.")
     "\\(?:\\(?:.*[^\\\n]\\)?\\(?:\\\\\\\\\\)*\\\\\n\\)*.*")
 
   (defconst sh-here-doc-open-re
-    (concat 
"[^<]<<-?\\s-*\\\\?\\(\\(?:['\"][^'\"]+['\"]\\|\\sw\\|[-/~._]\\)+\\)"
+    (concat 
"[^<]<<-?\\s-*\\\\?\\(\\(?:['\"][^'\"]+['\"]\\|\\sw\\|[-/~._@]\\)+\\)"
             sh-escaped-line-re "\\(\n\\)")))
 
 (defun sh--inside-noncommand-expression (pos)



reply via email to

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