mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-19 18:13:55 +00:00
CC Mode: Correct a rare error in the state cache
* lisp/progmodes/cc-engine.el (c-append-lower-brace-pair-to-state-cache): Do not record a position in a macro as the starting position in c-state-brace-pair-desert. Instead record the position at the beginning of that macro.
This commit is contained in:
parent
71249b774a
commit
3ef68c2d7a
@ -3886,7 +3886,10 @@ initializing CC Mode. Currently (2020-06) these are `js-mode' and
|
||||
(cons (if (and ce (< bra ce) (> ce here)) ; {..} straddling HERE?
|
||||
bra
|
||||
(point-min))
|
||||
(min here from)))))))))
|
||||
(progn
|
||||
(goto-char (min here from))
|
||||
(c-beginning-of-macro)
|
||||
(point))))))))))
|
||||
|
||||
(defsubst c-state-push-any-brace-pair (bra+1 macro-start-or-here)
|
||||
;; If BRA+1 is nil, do nothing. Otherwise, BRA+1 is the buffer position
|
||||
|
Loading…
Reference in New Issue
Block a user