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.
Showing with 85 additions and 36 deletions