diff options
| -rw-r--r-- | lisp/progmodes/sh-script.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index ae90531a7fe..b92449d7647 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.") | |||
| 578 | :group 'sh-script) | 578 | :group 'sh-script) |
| 579 | 579 | ||
| 580 | (defcustom sh-assignment-regexp | 580 | (defcustom sh-assignment-regexp |
| 581 | ;; The "\\[.+\\]" matches the "[index]" in "arrayvar[index]=value". | ||
| 581 | `((csh . "\\<\\([[:alnum:]_]+\\)\\(\\[.+\\]\\)?[ \t]*[-+*/%^]?=") | 582 | `((csh . "\\<\\([[:alnum:]_]+\\)\\(\\[.+\\]\\)?[ \t]*[-+*/%^]?=") |
| 582 | ;; actually spaces are only supported in let/(( ... )) | 583 | ;; actually spaces are only supported in let/(( ... )) |
| 583 | (ksh88 . ,(concat "\\<\\([[:alnum:]_]+\\)\\(\\[.+\\]\\)?" | 584 | (ksh88 . ,(concat "\\<\\([[:alnum:]_]+\\)\\(\\[.+\\]\\)?" |