diff options
author | Alan Mackenzie <acm@muc.de> | 2019-05-30 19:37:25 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2019-05-30 19:37:25 +0000 |
commit | 57e9141a9c3ac38a1bc63b2311f1b6a5a42ac604 (patch) | |
tree | 4bac8d4678379019ae07b53fbef3a647b289b47d /test/lisp/emacs-lisp/checkdoc-tests.el | |
parent | a0c7a640c2ddfc35b2458f505903839fa8a716d3 (diff) | |
download | emacs-57e9141a9c3ac38a1bc63b2311f1b6a5a42ac604.tar.gz emacs-57e9141a9c3ac38a1bc63b2311f1b6a5a42ac604.tar.bz2 emacs-57e9141a9c3ac38a1bc63b2311f1b6a5a42ac604.zip |
Optimize one of CC Mode's syntax caches for long comments and strings.
* lisp/progmoes/cc-langs.el (c-block-comment-awkward-chars): New lang
constant and variable.
* lisp/progmodes/cc-engine.el (c-state-semi-nonlit-pos-cache): Enhance the
doc comment.
(c-state-semi-get-near-cache-entry, c-state-semi-pp-to-literal): Reuse entry
if the sought position is in a literal, and lies between the literal start and
the entry's position.
(c-cache-to-parse-ps-state, c-parse-ps-state-below): Amend such that instead
of cacheing a state for a position after a backslash or first character of a
2-character comment delimiter, this is done for the previous character
position.
Diffstat (limited to 'test/lisp/emacs-lisp/checkdoc-tests.el')
0 files changed, 0 insertions, 0 deletions