aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2019-09-12 15:43:50 -0400
committerStefan Monnier2019-09-12 15:43:50 -0400
commit421084d2cb160261b259bddb687bb2c234f8f1ef (patch)
tree27a2585a7020ef8798593e5b12f47342607e6595
parent7fbabaf96ab55437b42e6365885c9c780726594c (diff)
downloademacs-421084d2cb160261b259bddb687bb2c234f8f1ef.tar.gz
emacs-421084d2cb160261b259bddb687bb2c234f8f1ef.zip
* lisp/progmodes/sh-script.el (sh--assignment-collect): Only after `=`!
-rw-r--r--lisp/progmodes/sh-script.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 230789eb6cd..cbc0ac74f09 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -4338,12 +4338,13 @@ option followed by a colon `:' if the option accepts an argument."
4338 4338
4339(defun sh--assignment-collect () 4339(defun sh--assignment-collect ()
4340 (sh-remember-variable 4340 (sh-remember-variable
4341 (save-excursion 4341 (when (eq ?= (char-before))
4342 (if (re-search-forward (sh-feature sh-assignment-regexp) 4342 (save-excursion
4343 (prog1 (point) 4343 (if (re-search-forward (sh-feature sh-assignment-regexp)
4344 (beginning-of-line 1)) 4344 (prog1 (point)
4345 t) 4345 (beginning-of-line 1))
4346 (match-string 1))))) 4346 t)
4347 (match-string 1))))))
4347 4348
4348 4349
4349(defun sh-maybe-here-document (arg) 4350(defun sh-maybe-here-document (arg)