summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-mode.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-08-04 11:39:03 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2019-08-04 11:39:54 -0700
commita5b796a8798a809044d847568e6472cc5eca077e (patch)
tree951f7dbc59d5ef840185d3f70560e6e3fb422e04 /lisp/progmodes/cc-mode.el
parent7748ef218cd7a9cffa984d165abe261cd60fae1a (diff)
downloademacs-a5b796a8798a809044d847568e6472cc5eca077e.tar.gz
emacs-a5b796a8798a809044d847568e6472cc5eca077e.tar.bz2
emacs-a5b796a8798a809044d847568e6472cc5eca077e.zip
Fix 2019-08-04 regex lint
Problem reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00085.html * lisp/calendar/diary-lib.el (diary-glob-file-regexp-prefix): Omit unnecessary ‘\’ before ordinary char. * lisp/cedet/inversion.el (inversion-decoders): * lisp/org/ob-haskell.el (org-babel-haskell-export-to-lhs): Omit unnecessary ‘?’ after nullable pattern. * lisp/org/org-capture.el (org-capture-fill-template): Match upper-case as well as lower-case letters. * lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings) (c-after-change-mark-abnormal-strings): Simplify ‘.|\r’ to ‘.’. * lisp/progmodes/gdb-mi.el (gdb-jsonify-buffer): Put ‘-’ at end of bracket expression.
Diffstat (limited to 'lisp/progmodes/cc-mode.el')
-rw-r--r--lisp/progmodes/cc-mode.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 60a9de5ddb5..76f5de212f2 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -1397,7 +1397,7 @@ Note that the style variables are always made local to the buffer."
;; Move to end of logical line (as it will be after the change, or as it
;; was before unescaping a NL.)
- (re-search-forward "\\(\\\\\\(.\\|\n\\|\r\\)\\|[^\\\n\r]\\)*" nil t)
+ (re-search-forward "\\(\\\\\\(.\\|\n\\)\\|[^\\\n\r]\\)*" nil t)
;; We're at an EOLL or point-max.
(if (equal (c-get-char-property (point) 'syntax-table) '(15))
(if (memq (char-after) '(?\n ?\r))
@@ -1505,7 +1505,7 @@ Note that the style variables are always made local to the buffer."
(progn
(goto-char (min (1+ end) ; 1+, in case a NL has become escaped.
(point-max)))
- (re-search-forward "\\(\\\\\\(.\\|\n\\|\r\\)\\|[^\\\n\r]\\)*"
+ (re-search-forward "\\(\\\\\\(.\\|\n\\)\\|[^\\\n\r]\\)*"
nil t)
(point))
c-new-END))