]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow @ characters in heredoc in shell-script-mode
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 20 Dec 2021 09:45:51 +0000 (10:45 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 21 Dec 2021 04:23:11 +0000 (05:23 +0100)
* lisp/progmodes/sh-script.el (defconst): Also allow @ in heredoc
(bug#52496).

lisp/progmodes/sh-script.el

index 92326d0dcfa10060f2e78a44773c23a7a066becd..0ff6aec8d91a54e9584ca090c6d2fb54ebc420a9 100644 (file)
@@ -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)