From: Lars Ingebrigtsen Date: Mon, 20 Dec 2021 09:45:51 +0000 (+0100) Subject: Allow @ characters in heredoc in shell-script-mode X-Git-Tag: emacs-29.0.90~3536 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c9636727363a0f0ecd8b2dd2cc6eebf9470e71f2;p=emacs.git Allow @ characters in heredoc in shell-script-mode * lisp/progmodes/sh-script.el (defconst): Also allow @ in heredoc (bug#52496). --- diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 92326d0dcfa..0ff6aec8d91 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)