]> git.eshelyaron.com Git - emacs.git/commit
Optimise c-font-lock-<>-arglists, particularly for buffers with few <..> pairs
authorAlan Mackenzie <acm@muc.de>
Mon, 14 Dec 2020 20:44:33 +0000 (20:44 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 14 Dec 2020 20:44:33 +0000 (20:44 +0000)
commit071bfd9840b1048bdc4f2c461fe50bd33dc919e8
tree1bb3ce46c2038b6a3ccd41a99e7b9c36e0bad79e
parent9022df70270243f211c54ccd66800320148b8434
Optimise c-font-lock-<>-arglists, particularly for buffers with few <..> pairs

* lisp/progmodes/cc-fonts.el (c-font-lock-<>-arglists): In place of a regexp
search for a complicated and slow regexp, search simply for "<" ouside of
literals together with add hoc testing of other requirements for a <...>
match.

* lisp/progmodes/cc-langs.el (c-nonsymbol-key): New c-lang-defvar from the
c-lang-const.
lisp/progmodes/cc-fonts.el
lisp/progmodes/cc-langs.el