diff options
author | Alan Mackenzie <acm@muc.de> | 2013-04-03 17:50:39 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2013-04-03 17:50:39 +0000 |
commit | 691e26ae7d3b48f1cf23d87887da8d105b0f9516 (patch) | |
tree | ab0c78ab667e921acd6b6cdd8ebb06bd705d423f /lisp/progmodes/cc-fonts.el | |
parent | 96bbc3099d778486295c700fa1f56595b7bc9754 (diff) | |
download | emacs-691e26ae7d3b48f1cf23d87887da8d105b0f9516.tar.gz emacs-691e26ae7d3b48f1cf23d87887da8d105b0f9516.tar.bz2 emacs-691e26ae7d3b48f1cf23d87887da8d105b0f9516.zip |
Handle `parse-partial-sexp' landing inside a comment opener
(Bug#13244). Also adapt to the new values of element 7 of a parse
state.
* progmodes/cc-engine.el (c-state-pp-to-literal): New optional
parameter `not-in-delimiter'. Handle being inside comment opener.
(c-invalidate-state-cache-1): Reckon with an extra "invalid"
character in case we're typing a '*' after a '/'.
(c-literal-limits): Handle the awkward "not-in-delimiter" cond arm
instead by passing the parameter to c-state-pp-to-literal.
* progmodes/cc-fonts.el (c-font-lock-doc-comments): New handling
for elt. 7 of a parse state.
Diffstat (limited to 'lisp/progmodes/cc-fonts.el')
-rw-r--r-- | lisp/progmodes/cc-fonts.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el index f6c47f5bb4d..83343b23014 100644 --- a/lisp/progmodes/cc-fonts.el +++ b/lisp/progmodes/cc-fonts.el @@ -2486,7 +2486,7 @@ need for `pike-font-lock-extra-types'.") (setq comment-beg nil)) (setq region-beg comment-beg)) - (if (eq (elt (parse-partial-sexp comment-beg (+ comment-beg 2)) 7) t) + (if (elt (parse-partial-sexp comment-beg (+ comment-beg 2)) 7) ;; Collect a sequence of doc style line comments. (progn (goto-char comment-beg) |