mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-20 10:23:57 +00:00
Fix (again) regexp bug in CC Mode.
* lisp/progmodes/cc-mode.el (c-after-change-mark-abnormal-strings): "|\\\r" -> "\\|\r".
This commit is contained in:
parent
eb6bbd9fb1
commit
14e9a428c5
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user