# HG changeset patch # User Eli Zaretskii # Date 1007577650 0 # Node ID 6bfa4dcc106e6f84d669562f842e4d94c51763ad # Parent ac2e15599f8407c7bf56ad5e35e73747874ea627 (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 . diff -r ac2e15599f84 -r 6bfa4dcc106e lisp/progmodes/cwarn.el --- a/lisp/progmodes/cwarn.el Wed Dec 05 15:36:44 2001 +0000 +++ b/lisp/progmodes/cwarn.el Wed Dec 05 18:40:50 2001 +0000 @@ -394,7 +394,9 @@ (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))