CC Mode: Fix a bug in yesterday's patch

* lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Check
the language has multi-line strings before calling
c-ml-string-opener-at-or-around-point.
This commit is contained in:
Alan Mackenzie 2021-08-13 20:58:30 +00:00
parent 8fbb870083
commit 254dc6ab4c

View file

@ -1526,6 +1526,7 @@ Note that the style variables are always made local to the buffer."
(unless
(or (and
;; Don't set c-new-BEG/END if we're in an ml string.
c-ml-string-opener-re
(eq beg-literal-type 'string)
(c-ml-string-opener-at-or-around-point (car beg-limits)))
(and c-multiline-string-start-char