mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
CC Mode: Fix looping in patch from yesterday
* lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings) (c-after-change-mark-abnormal-strings): Check (eobp) in loops advancing over escaped newlines.
This commit is contained in:
parent
c8833ba365
commit
a332034160
1 changed files with 6 additions and 2 deletions
|
|
@ -1520,7 +1520,9 @@ Note that the style variables are always made local to the buffer."
|
|||
;; was before unescaping a NL.)
|
||||
(while
|
||||
(progn (end-of-line)
|
||||
(eq (char-before) ?\\))
|
||||
(and
|
||||
(eq (char-before) ?\\)
|
||||
(not (eobp))))
|
||||
(forward-line))
|
||||
;; We're at an EOLL or point-max.
|
||||
(if (equal (c-get-char-property (point) 'syntax-table) '(15))
|
||||
|
|
@ -1641,7 +1643,9 @@ Note that the style variables are always made local to the buffer."
|
|||
end))
|
||||
(while
|
||||
(progn (end-of-line)
|
||||
(eq (char-before) ?\\))
|
||||
(and
|
||||
(eq (char-before) ?\\)
|
||||
(not (eobp))))
|
||||
(forward-line))
|
||||
(point))
|
||||
c-new-END))
|
||||
|
|
|
|||
Loading…
Reference in a new issue