From a17c90638b08f5d3f2c4167ff7c93aa72f10e84d Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 5 Dec 2001 18:41:34 +0000 Subject: [PATCH] (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 . --- lisp/ChangeLog | 7 +++++++ lisp/progmodes/cwarn.el | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e20bdca5859..e5a5c011d10 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2001-12-05 Eli Zaretskii + + * 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 + . + 2001-12-04 Juanma Barranquero * files.el (save-abbrevs, save-some-buffers): Don't ask the user diff --git a/lisp/progmodes/cwarn.el b/lisp/progmodes/cwarn.el index ebc65edf076..b1f890dea93 100644 --- a/lisp/progmodes/cwarn.el +++ b/lisp/progmodes/cwarn.el @@ -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)) -- 2.39.2