Mercurial > emacs
diff lisp/progmodes/cwarn.el @ 41827:6bfa4dcc106e
(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>.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Wed, 05 Dec 2001 18:40:50 +0000 |
parents | c302267b48cd |
children | 811bba65a69f |
line wrap: on
line diff
--- 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))