changeset 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 ac2e15599f84
children b8e9dfdbefe3
files lisp/progmodes/cwarn.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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))