[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master bcc3d36 3/3: ; Add comment about sh-assignment-rege
From: |
Noam Postavsky |
Subject: |
[Emacs-diffs] master bcc3d36 3/3: ; Add comment about sh-assignment-regexp value |
Date: |
Sat, 13 Jul 2019 21:42:04 -0400 (EDT) |
branch: master
commit bcc3d36d8a4b2931ffb7a45436c4b014b1420ff3
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>
; Add comment about sh-assignment-regexp value
* lisp/progmodes/sh-script.el (sh-assignment-regexp): Explain what the
the "\\[.+\\]" is for, to make clear it is not a typo for "[.+]".
---
lisp/progmodes/sh-script.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index ae90531..b92449d 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -578,6 +578,7 @@ This is buffer-local in every such buffer.")
:group 'sh-script)
(defcustom sh-assignment-regexp
+ ;; The "\\[.+\\]" matches the "[index]" in "arrayvar[index]=value".
`((csh . "\\<\\([[:alnum:]_]+\\)\\(\\[.+\\]\\)?[ \t]*[-+*/%^]?=")
;; actually spaces are only supported in let/(( ... ))
(ksh88 . ,(concat "\\<\\([[:alnum:]_]+\\)\\(\\[.+\\]\\)?"