]> git.eshelyaron.com Git - emacs.git/commit
Partially correct fontification of "(b*3)", and the like, in C++ Mode
authorAlan Mackenzie <acm@muc.de>
Thu, 29 Dec 2016 15:34:36 +0000 (15:34 +0000)
committerAlan Mackenzie <acm@muc.de>
Thu, 29 Dec 2016 15:34:36 +0000 (15:34 +0000)
commit11b81a54d538e8deca3cd64521cf85409efb617b
tree566d97547ea1057db231857c9f4a1cebbb34f032
parent0d19e69184cd3068279677fb04aa9fb2da6895e4
Partially correct fontification of "(b*3)", and the like, in C++ Mode

This problem is caused by the fundamental ambiguity in C++ between
argument declarations and initialisation clauses.

* lisp/progmodes/cc-fonts.el (c-font-lock-declarations): If we have an open
paren preceded by an arithmetic operator, we give this the context nil, not
'arglist.

* lisp/progmodes/cc-langs.el (c-arithmetic-operators, c-arithmetic-op-regexp):
New lang consts and vars.
lisp/progmodes/cc-fonts.el
lisp/progmodes/cc-langs.el