(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 e20bdca..e5a5c01 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 ebc65ed..b1f890d 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))