CC Mode: Don't start fontifying in the middle of an identifier
This fixes bug#70367. * lisp/progmodes/cc-mode.el (c-fl-decl-start): After searching backwards for the end of the previous statement, check whether or not we found it.
This commit is contained in:
parent
2823eae0b7
commit
b2842b25bf
1 changed files with 1 additions and 1 deletions
|
@ -2463,7 +2463,7 @@ with // and /*, not more generic line and block comments."
|
|||
(backward-char)
|
||||
(setq pseudo (c-cheap-inside-bracelist-p (c-parse-state)))))))
|
||||
(goto-char pseudo))
|
||||
t)
|
||||
(or pseudo (> (point) bod-lim)))
|
||||
;; Move forward to the start of the next declaration.
|
||||
(progn (c-forward-syntactic-ws)
|
||||
;; Have we got stuck in a comment at EOB?
|
||||
|
|
Loading…
Add table
Reference in a new issue