summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/autoload.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2017-12-21 17:49:14 +0000
committerAlan Mackenzie <acm@muc.de>2017-12-21 17:55:59 +0000
commit88ddf53ef086ee2f2e0ea729bc4afbf34d88d82b (patch)
tree540cb7c167a90597cbeb7b6c88dbd9498d89e1e8 /lisp/emacs-lisp/autoload.el
parentde7de9cc0cfcef1c7651887fd36fc2a346dadd6c (diff)
downloademacs-88ddf53ef086ee2f2e0ea729bc4afbf34d88d82b.tar.gz
emacs-88ddf53ef086ee2f2e0ea729bc4afbf34d88d82b.tar.bz2
emacs-88ddf53ef086ee2f2e0ea729bc4afbf34d88d82b.zip
Fontify a CPP construct correctly when a comment follows without spaces
Do this by removing a broken optimization in the state cache which put category text properties on a character between the end of the CPP construct and the beginning of the comment. This can't work when there's no such character. * lisp/progmodes/cc-defs.el (c-cpp-delimiter, c-set-cpp-delimiters) (c-clear-cpp-delimiters, c-comment-out-cpps, c-with-cpps-commented-out) (c-with-all-but-one-cpps-commented-out): Remove. * lisp/progmodes/cc-engine.el (c-no-comment-end-of-macro): Return the comment start position rather than one character before it. (c-invalidate-state-cache, c-parse-state): Remove the invocations of c-with-all-but-one-cpps-commented-out and c-with-cpps-commented-out. * lisp/progmodes/cc-mode.el (c-neutralize-syntax-in-and-mark-CPP): Rename to c-neutralize-syntax-in-CPP and remove the bits which applied category properties. * lisp/progmodes/cc-langs.el (c-before-font-lock-functions): Incorporate the new name of the function c-neutralize-syntax-in-CPP.
Diffstat (limited to 'lisp/emacs-lisp/autoload.el')
0 files changed, 0 insertions, 0 deletions