emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 14e9a42: Fix (again) regexp bug in CC Mode.


From: Alan Mackenzie
Subject: [Emacs-diffs] master 14e9a42: Fix (again) regexp bug in CC Mode.
Date: Fri, 29 Mar 2019 06:36:45 -0400 (EDT)

branch: master
commit 14e9a428c5e555c590629b4eeec7e754d7e7ae77
Author: Alan Mackenzie <address@hidden>
Commit: Alan Mackenzie <address@hidden>

    Fix (again) regexp bug in CC Mode.
    
    * lisp/progmodes/cc-mode.el (c-after-change-mark-abnormal-strings): "|\\\r" 
->
    "\\|\r".
---
 lisp/progmodes/cc-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index c1fb6aa..b7812fa 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -1366,7 +1366,7 @@ Note that the style variables are always made local to 
the buffer."
        (unless (and (c-major-mode-is 'c++-mode)
                     (c-maybe-re-mark-raw-string))
          (if (c-unescaped-nls-in-string-p (1- (point)))
-             (looking-at "\\(\\\\\\(.\\|\n|\\\r\\)\\|[^\"]\\)*")
+             (looking-at "\\(\\\\\\(.\\|\n\\|\r\\)\\|[^\"]\\)*")
            (looking-at (cdr (assq (char-before) c-string-innards-re-alist))))
          (cond
           ((memq (char-after (match-end 0)) '(?\n ?\r))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]