summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-fonts.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2013-04-03 17:50:39 +0000
committerAlan Mackenzie <acm@muc.de>2013-04-03 17:50:39 +0000
commit691e26ae7d3b48f1cf23d87887da8d105b0f9516 (patch)
treeab0c78ab667e921acd6b6cdd8ebb06bd705d423f /lisp/progmodes/cc-fonts.el
parent96bbc3099d778486295c700fa1f56595b7bc9754 (diff)
downloademacs-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.el2
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)