diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-12-20 10:45:51 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-12-21 05:23:11 +0100 |
commit | c9636727363a0f0ecd8b2dd2cc6eebf9470e71f2 (patch) | |
tree | d65d6388741bce4b6c8002eb214f96613d142e70 /lisp/progmodes/sh-script.el | |
parent | 6def36f2160b0333343b0fb316b36c159e1e9c72 (diff) | |
download | emacs-c9636727363a0f0ecd8b2dd2cc6eebf9470e71f2.tar.gz emacs-c9636727363a0f0ecd8b2dd2cc6eebf9470e71f2.tar.bz2 emacs-c9636727363a0f0ecd8b2dd2cc6eebf9470e71f2.zip |
Allow @ characters in heredoc in shell-script-mode
* lisp/progmodes/sh-script.el (defconst): Also allow @ in heredoc
(bug#52496).
Diffstat (limited to 'lisp/progmodes/sh-script.el')
-rw-r--r-- | lisp/progmodes/sh-script.el | 2 |
1 files changed, 1 insertions, 1 deletions
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) |