summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2017-05-07 09:27:00 +0000
committerAlan Mackenzie <acm@muc.de>2017-05-07 09:27:00 +0000
commitbcbd8f7e4e929604bb3dfef9937432cb05b5f648 (patch)
treee60abdb591038992dea3225300a00982c0d167e3 /lisp/files.el
parent55b07d33796a4697b37215c18b4630eeaaa4fb76 (diff)
downloademacs-bcbd8f7e4e929604bb3dfef9937432cb05b5f648.tar.gz
CC Mode internal cache: Handle a cache pos being inside a two-char construct.
Cache c-state-semi-nonlit-pos-cache was failing when a cache position was, e.g., between the two characters of an opening comment "/*", and additionally there were an odd number of quote marks (apostrophes) in the comment. This happened in .../src/xdisp.c in the Emacs master branch around 2017-05-02 at buffer position 615001. * lisp/progmodes/cc-defs.el (c-emacs-features): Repurpose symbol pps-extended-state to mean that there are at least 11 elements in the parser state. * lisp/progmodes/cc-engine.el (c-cache-to-parse-ps-state) (c-parse-ps-state-to-cache): Rewrite these to use enhanced cache element list types which indicate potentially being inside two-char constructs. (c-parse-ps-state-below): Rewrite to use the new versions of the above two functions.
Diffstat (limited to 'lisp/files.el')
0 files changed, 0 insertions, 0 deletions