]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix typo in sh-assignment-regexp
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 13 Jul 2019 14:20:53 +0000 (16:20 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 13 Jul 2019 14:20:53 +0000 (16:20 +0200)
* lisp/progmodes/sh-script.el (sh-assignment-regexp): Fix typo in
bash regexp that inhibited fontification of stuff like foo.=bar
(bug#31710).

lisp/progmodes/sh-script.el

index ae90531a7fefafc40b1556562d13dae00191d0ce..64608f1930f4c1e1ec1eadd96797b0566342c8c0 100644 (file)
@@ -582,7 +582,7 @@ This is buffer-local in every such buffer.")
     ;; actually spaces are only supported in let/(( ... ))
     (ksh88 . ,(concat "\\<\\([[:alnum:]_]+\\)\\(\\[.+\\]\\)?"
                       "[ \t]*\\(?:[-+*/%&|~^]\\|<<\\|>>\\)?="))
-    (bash . "\\<\\([[:alnum:]_]+\\)\\(\\[.+\\]\\)?\\+?=")
+    (bash . "\\<\\([[:alnum:]_]+\\)\\([.+]\\)?\\+?=")
     (rc . "\\<\\([[:alnum:]_*]+\\)[ \t]*=")
     (sh . "\\<\\([[:alnum:]_]+\\)="))
   "Regexp for the variable name and what may follow in an assignment.