CC Mode: Fix error in cache handling. This fixes bug #43481

* lisp/progmodes/cc-engine.el (c-full-pp-to-literal): Handle correctly END
being before HERE by using parse-partial-sexp to get the end of the literal
containing HERE.
This commit is contained in:
Alan Mackenzie 2020-11-26 11:37:38 +00:00
parent 6442cdc0e4
commit c9160bda78

View file

@ -3155,7 +3155,7 @@ comment at the start of cc-engine.el for more info."
((nth 7 s) 'c++) ((nth 7 s) 'c++)
(t 'c))) (t 'c)))
(setq start (nth 8 s)) (setq start (nth 8 s))
(unless end (unless (and end (>= end here))
(setq s1 (parse-partial-sexp here (point-max) (setq s1 (parse-partial-sexp here (point-max)
nil ; TARGETDEPTH nil ; TARGETDEPTH
nil ; STOPBEFORE nil ; STOPBEFORE