]> git.eshelyaron.com Git - emacs.git/commit
Optimize for typing characters into long C++ raw strings.
authorAlan Mackenzie <acm@muc.de>
Tue, 23 Apr 2019 09:16:05 +0000 (09:16 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 23 Apr 2019 09:16:05 +0000 (09:16 +0000)
commit0d5caa9a0c668d06ab650392bd52ad03a4dfbd1a
tree4de7b5bce32722274c6d153de30e042b1516890f
parent085929ca9309a170b5b4252448f1291e3db2b594
Optimize for typing characters into long C++ raw strings.

* lisp/progmodes/cc-fonts.el (c-font-lock-complex-decl-prepare)
(c-font-lock-objc-methods) (c-font-lock-declarations, c-font-lock-enum-tail)
(c-font-lock-cut-off-declarators, c-font-lock-enclosing-decls): If the chunk
been fontified consists entirely of comments and strings, don't attempt to
perform the function's action.

* lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Don't
expand (c-new-BEG c-new-END) unnecessarily to the entire raw string being
fontified.
(c-fl-decl-start, c-fl-decl-end): When in a (raw or otherwise) string, don't
return a position outside of the string (which used to cause unneeded
fontification).
lisp/progmodes/cc-fonts.el
lisp/progmodes/cc-mode.el