From 81ae21792b3d840a2f11e4c3a682e1e30799c37f Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Sun, 3 Mar 2019 20:03:56 +0000 Subject: Correct some slightly incorrect regular expressions: * lisp/progmodes/cc-awk.el (c-awk-harmless-char-re) (c-awk-harmless-line-char-re, c-awk-_-harmless-nonws-char-re): [...\\\\...] -> [...\\...]. * lisp/progmodes/cc-engine.el (c-literal-limits): "*/" -> "\\*/". * lisp/progmodes/cc-mode.el (c-after-change-re-mark-unbalanced-strings): "\\\r" -> "\r". --- lisp/progmodes/cc-awk.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lisp/progmodes/cc-awk.el') diff --git a/lisp/progmodes/cc-awk.el b/lisp/progmodes/cc-awk.el index bcb9d0430a3..70b1237cb8d 100644 --- a/lisp/progmodes/cc-awk.el +++ b/lisp/progmodes/cc-awk.el @@ -130,7 +130,7 @@ ;; REGEXPS FOR "HARMLESS" STRINGS/LINES. (defconst c-awk-harmless-_ "_\\([^\"]\\|\\'\\)") ;; Matches an underline NOT followed by ". -(defconst c-awk-harmless-char-re "[^_#/\"{}();\\\\\n\r]") +(defconst c-awk-harmless-char-re "[^_#/\"{}();\\\n\r]") ;; Matches any character not significant in the state machine applying ;; syntax-table properties to "s and /s. (defconst c-awk-harmless-string*-re @@ -141,7 +141,7 @@ (concat "\\=" c-awk-harmless-string*-re)) ;; Matches the (possibly empty) sequence of "insignificant" chars at point. -(defconst c-awk-harmless-line-char-re "[^_#/\"\\\\\n\r]") +(defconst c-awk-harmless-line-char-re "[^_#/\"\\\n\r]") ;; Matches any character but a _, #, /, ", \, or newline. N.B. _" starts a ;; localization string in gawk 3.1 (defconst c-awk-harmless-line-string*-re @@ -250,7 +250,7 @@ ;; which can precede an expression. ;; REGEXPS USED FOR FINDING THE POSITION OF A "virtual semicolon" -(defconst c-awk-_-harmless-nonws-char-re "[^#/\"\\\\\n\r \t]") +(defconst c-awk-_-harmless-nonws-char-re "[^#/\"\\\n\r \t]") (defconst c-awk-non-/-syn-ws*-re (concat "\\(" c-awk-escaped-nls*-with-space* -- cgit v1.2.3