]> code.delx.au - gnu-emacs/commit
Allow arithmetic operators inside C++ template constructs.
authorAlan Mackenzie <acm@muc.de>
Mon, 15 Feb 2016 12:45:42 +0000 (12:45 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 15 Feb 2016 15:05:02 +0000 (15:05 +0000)
commit02b037b85ce32fdcf454f5b12d72f09bcb217891
treed9fda6629d10843b78679d50f06a2c654dc5e07c
parent44b16f60fd80afe574964390d896635971cb5504
Allow arithmetic operators inside C++ template constructs.

Fixes debbugs #22486.  This corrects the previous patch with this message
which was empty.

* lisp/progmodes/cc-langs.el (c-multichar->-op-not->>-regexp): New language
variable.
(c-<>-notable-chars-re): New language variable.

* lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur): User
c-<>-notable-chars-re in place of the former fixed string in searching for
places to stop and examine.
Use c-multichar->-op-not->>-regexp to check that a found ">" is not part of a
multichar operator in place of the former c->-op-without->-cont-regexp.
Add code to skip forwards over a balanced parenthesized expression.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-langs.el