diff options
author | Eli Zaretskii <eliz@gnu.org> | 2001-12-05 18:41:34 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2001-12-05 18:41:34 +0000 |
commit | a17c90638b08f5d3f2c4167ff7c93aa72f10e84d (patch) | |
tree | e957db5795bdf270afeb4c98616b00fed5dbd5cc /lisp/progmodes | |
parent | 8bc242001530e1eaff75a08d97f19f92b20abe3e (diff) | |
download | emacs-a17c90638b08f5d3f2c4167ff7c93aa72f10e84d.tar.gz |
(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>.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r-- | lisp/progmodes/cwarn.el | 4 |
1 files changed, 3 insertions, 1 deletions
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)) |