diff options
| author | Eli Zaretskii | 2019-03-09 19:48:25 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-03-09 19:48:25 +0200 |
| commit | e1819a254f28a7dcba3c395c345fe237a512e92e (patch) | |
| tree | d2ea0311bccc391b28d074c28e53746b9dbcfd7f | |
| parent | 9fe7f233597d8a6ac72a61e1fb197e45a8c73370 (diff) | |
| parent | 911231545f57cf659deddb69950f005f948d8329 (diff) | |
| download | emacs-e1819a254f28a7dcba3c395c345fe237a512e92e.tar.gz emacs-e1819a254f28a7dcba3c395c345fe237a512e92e.zip | |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
| -rw-r--r-- | lisp/progmodes/cc-awk.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/cc-mode.el | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/cc-awk.el b/lisp/progmodes/cc-awk.el index 70b1237cb8d..70aa3c4b1f1 100644 --- a/lisp/progmodes/cc-awk.el +++ b/lisp/progmodes/cc-awk.el | |||
| @@ -188,8 +188,8 @@ | |||
| 188 | "\\[:[a-z]+:\\]") | 188 | "\\[:[a-z]+:\\]") |
| 189 | ;; Matches a character class spec (e.g. [:alpha:]). | 189 | ;; Matches a character class spec (e.g. [:alpha:]). |
| 190 | (defconst c-awk-regexp-char-list-re | 190 | (defconst c-awk-regexp-char-list-re |
| 191 | (concat "\\[" c-awk-escaped-newlines*-re "^?" c-awk-escaped-newlines*-re "]?" | 191 | (concat "\\[\\(" c-awk-escaped-newlines*-re "\\^\\)?" c-awk-escaped-newlines*-re "]?" |
| 192 | "\\(" c-awk-esc-pair-re "\\|" c-awk-regexp-char-class-re | 192 | "\\(" c-awk-esc-pair-re "\\|" c-awk-regexp-char-class-re |
| 193 | "\\|" "[^]\n\r]" "\\)*" "\\(]\\|$\\)")) | 193 | "\\|" "[^]\n\r]" "\\)*" "\\(]\\|$\\)")) |
| 194 | ;; Matches a regexp char list, up to (but not including) EOL if the ] is | 194 | ;; Matches a regexp char list, up to (but not including) EOL if the ] is |
| 195 | ;; missing. | 195 | ;; missing. |
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index 1b527094caa..4e63bd9144b 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el | |||
| @@ -1349,7 +1349,7 @@ Note that the style variables are always made local to the buffer." | |||
| 1349 | ;; We're at the start of a string. | 1349 | ;; We're at the start of a string. |
| 1350 | (memq (char-before) c-string-delims))) | 1350 | (memq (char-before) c-string-delims))) |
| 1351 | (if (c-unescaped-nls-in-string-p (1- (point))) | 1351 | (if (c-unescaped-nls-in-string-p (1- (point))) |
| 1352 | (looking-at "\\(\\\\\\(.\\|\n|\r\\)\\|[^\"]\\)*") | 1352 | (looking-at "\\(\\\\\\(.\\|\n\\|\r\\)\\|[^\"]\\)*") |
| 1353 | (looking-at (cdr (assq (char-before) c-string-innards-re-alist)))) | 1353 | (looking-at (cdr (assq (char-before) c-string-innards-re-alist)))) |
| 1354 | (cond | 1354 | (cond |
| 1355 | ((memq (char-after (match-end 0)) '(?\n ?\r)) | 1355 | ((memq (char-after (match-end 0)) '(?\n ?\r)) |