Commit 421084d2 authored by Stefan Monnier's avatar Stefan Monnier

* lisp/progmodes/sh-script.el (sh--assignment-collect): Only after `=`!

parent 7fbabaf9
Pipeline #3110 failed with stage
in 54 minutes and 37 seconds
......@@ -4338,12 +4338,13 @@ option followed by a colon `:' if the option accepts an argument."
(defun sh--assignment-collect ()
(sh-remember-variable
(save-excursion
(if (re-search-forward (sh-feature sh-assignment-regexp)
(prog1 (point)
(beginning-of-line 1))
t)
(match-string 1)))))
(when (eq ?= (char-before))
(save-excursion
(if (re-search-forward (sh-feature sh-assignment-regexp)
(prog1 (point)
(beginning-of-line 1))
t)
(match-string 1))))))
(defun sh-maybe-here-document (arg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment