(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>.
This commit is contained in:
Eli Zaretskii
2001-12-05 18:41:34 +00:00
parent 8bc2420015
commit a17c90638b
2 changed files with 10 additions and 1 deletions

View 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

View 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))