diff options
author | Alan Mackenzie <acm@muc.de> | 2020-07-04 11:56:18 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2020-07-04 11:56:18 +0000 |
commit | 697942f9a0d875cb8b00e6de155a34354db1dcba (patch) | |
tree | 13994bc9acd3de48cb826b6425f8f793e1fe66ab /lisp/textmodes/mhtml-mode.el | |
parent | 32b3856f850e1721b3be23b50f4b90f9f59fee8a (diff) | |
download | emacs-697942f9a0d875cb8b00e6de155a34354db1dcba.tar.gz emacs-697942f9a0d875cb8b00e6de155a34354db1dcba.tar.bz2 emacs-697942f9a0d875cb8b00e6de155a34354db1dcba.zip |
CC Mode: Fix wrong value of comment-start-skip, fixing half of bug #41952
Also add functions to enable correct use of CC Mode's filling functionality
from major modes which don't initialize CC Mode fully. These modes are
currently js-mode and mhtml-mode.
* lisp/progmodes/cc-langs.el (comment-start-skip): Replace "\\(" by "\\(?:" so
that (match-end 1) isn't falsely taken to be the start of the comment.
* lisp/progmodes/cc-engine.el (c-foreign-truncate-lit-pos-cache)
(c-foreign-init-lit-pos-cache): New functions.
Diffstat (limited to 'lisp/textmodes/mhtml-mode.el')
0 files changed, 0 insertions, 0 deletions