mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 05:47:36 +00:00
(c-neutralize-syntax-in-CPP): Fix a bug on typing "#" at EOB.
This commit is contained in:
parent
af9b45f99c
commit
d70e242245
1 changed files with 2 additions and 4 deletions
|
|
@ -845,13 +845,11 @@ Note that the style variables are always made local to the buffer."
|
|||
(if (setq limits (c-literal-limits))
|
||||
(goto-char (cdr limits)))
|
||||
|
||||
(while (and (< (point) end)
|
||||
(search-forward-regexp c-anchored-cpp-prefix end t))
|
||||
(while (search-forward-regexp c-anchored-cpp-prefix end t)
|
||||
(when (c-beginning-of-macro) ; Guard against being in a string/comment.
|
||||
(setq mbeg (point))
|
||||
(c-end-of-macro) ; Do we need to go forward 1 char here? No!
|
||||
(c-neutralize-CPP-line mbeg (point)))
|
||||
(forward-char)))) ; We might still be in a comment - this is OK.
|
||||
(c-neutralize-CPP-line mbeg (point)))))) ; We might still be in a comment - this is OK.
|
||||
|
||||
(defun c-before-change (beg end)
|
||||
;; Function to be put on `before-change-function'. Primarily, this calls
|
||||
|
|
|
|||
Loading…
Reference in a new issue