]> git.eshelyaron.com Git - emacs.git/commitdiff
CC Mode: Fix a bug in yesterday's patch
authorAlan Mackenzie <acm@muc.de>
Fri, 13 Aug 2021 20:58:30 +0000 (20:58 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 13 Aug 2021 20:58:30 +0000 (20:58 +0000)
* 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

index a5df8449ea0fb5487d59f6150d1105d338f5a9ca..057d292246f8270e8048cbb1a27f4f4cb88e6c8c 100644 (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