From 254dc6ab4ca8e6a549a795f9eaf45378ce51b61f Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Fri, 13 Aug 2021 20:58:30 +0000 Subject: [PATCH] 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. --- lisp/progmodes/cc-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index a5df8449ea0..057d292246f 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el @@ -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 -- 2.39.2