]> git.eshelyaron.com Git - emacs.git/commitdiff
(cwarn-font-lock-match-assignment-in-expression):
authorEli Zaretskii <eliz@gnu.org>
Wed, 5 Dec 2001 18:41:34 +0000 (18:41 +0000)
committerEli Zaretskii <eliz@gnu.org>
Wed, 5 Dec 2001 18:41:34 +0000 (18:41 +0000)
Add shift-assignment operators to those highlighted, and highlight
the whole operator rather than just the "=".  From Broadey Kevin
<Kevin.Broadey@motorola.com>.

lisp/ChangeLog
lisp/progmodes/cwarn.el

index e20bdca58599612066e183c3b50bf128a57023a1..e5a5c011d10a3a57caac91d9e549c520756dc389 100644 (file)
@@ -1,3 +1,10 @@
+2001-12-05  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * progmodes/cwarn.el (cwarn-font-lock-match-assignment-in-expression):
+       Add shift-assignment operators to those highlighted, and highlight
+       the whole operator rather than just the "=".  From Broadey Kevin
+       <Kevin.Broadey@motorola.com>.
+
 2001-12-04  Juanma Barranquero  <lektu@terra.es>
 
        * files.el (save-abbrevs, save-some-buffers): Don't ask the user
index ebc65edf076b9e7e2baa3bb70c289943c5ad2357..b1f890dea9335d8d19fded638c41e2ef8b1f561c 100644 (file)
@@ -394,7 +394,9 @@ brace."
   (let ((res nil))
     (while
        (progn
-         (setq res (re-search-forward "[^!<>=]\\(=\\)[^=]" limit t))
+         (setq res (re-search-forward
+                    "[^!<>=]\\(\\([-+*/%&^|]\\|<<\\|>>\\)?=\\)[^=]"
+                    limit t))
          (and res
               (save-excursion
                 (goto-char (match-beginning 1))