[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 421084d: * lisp/progmodes/sh-script.el (sh--assignm
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] master 421084d: * lisp/progmodes/sh-script.el (sh--assignment-collect): Only after `=`! |
Date: |
Thu, 12 Sep 2019 15:43:58 -0400 (EDT) |
branch: master
commit 421084d2cb160261b259bddb687bb2c234f8f1ef
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>
* lisp/progmodes/sh-script.el (sh--assignment-collect): Only after `=`!
---
lisp/progmodes/sh-script.el | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 230789e..cbc0ac7 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."
(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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 421084d: * lisp/progmodes/sh-script.el (sh--assignment-collect): Only after `=`!,
Stefan Monnier <=