projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6def36f
)
Allow @ characters in heredoc in shell-script-mode
author
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 20 Dec 2021 09:45:51 +0000
(10:45 +0100)
committer
Lars 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
patch
|
blob
|
history
diff --git
a/lisp/progmodes/sh-script.el
b/lisp/progmodes/sh-script.el
index 92326d0dcfa10060f2e78a44773c23a7a066becd..0ff6aec8d91a54e9584ca090c6d2fb54ebc420a9 100644
(file)
--- 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)