Speed up CC Mode's font locking by taking some code out of a hot loop.
commitb76385c05076f0adaf7cf89d0ed95dfe5e8570e0
authorAlan Mackenzie <acm@muc.de>
Wed, 15 Jun 2016 22:06:14 +0000 (15 22:06 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 15 Jun 2016 22:06:14 +0000 (15 22:06 +0000)
tree2bea04ca5603718acab3690fa16c249ba19d18f3
parentfd8084aaf925a52754e01f69f4b6c5593be0982d
Speed up CC Mode's font locking by taking some code out of a hot loop.

* lisp/progmodes/cc-fonts.el (c-font-lock-declarations): Remove code which
tests for bare declarators.
(c-font-lock-cut-off-declarators): New function.
(c-complex-decl-matchers): insert c-font-lock-cut-off-declarators.
lisp/progmodes/cc-fonts.el