From c9636727363a0f0ecd8b2dd2cc6eebf9470e71f2 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 20 Dec 2021 10:45:51 +0100 Subject: 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 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) -- cgit v1.2.3