]> git.eshelyaron.com Git - emacs.git/commit
Optimize c-crosses-statement-barrier-p for large blocks of comment.
authorAlan Mackenzie <acm@muc.de>
Sun, 20 Oct 2019 16:55:26 +0000 (16:55 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 20 Oct 2019 16:55:26 +0000 (16:55 +0000)
commit5ddbd8d191e7e38167a63728c6ead5a6401c63f6
tree4d117995d63b4912d9aa3d150cce4ff196a864d1
parentdff8978f5004561e2625b4199cefd8c262bb42cb
Optimize c-crosses-statement-barrier-p for large blocks of comment.

This fixes bug #18134.

* lisp/progmodes/cc-engine.el (c-crosses-statement-barrier-p): Give a limit
to the c-backward-syntactic-ws which is searching for a virtual semicolon.  In
the main loop, Use c-forward-syntactic-ws to skip blocks of comments.
lisp/progmodes/cc-engine.el