]> git.eshelyaron.com Git - emacs.git/commit
Repair hideif regexp problems
authorMattias Engdegård <mattiase@acm.org>
Fri, 27 Jan 2023 16:21:28 +0000 (17:21 +0100)
committerMattias Engdegård <mattiase@acm.org>
Fri, 27 Jan 2023 16:27:15 +0000 (17:27 +0100)
commit4287d56bad5201cf0946526bb0e27c17426bd969
tree81c57c54a51a43f7d6eccf8a83b05175e0656551
parent627ac228b2ecdf179f36ea41fd0254c091744e4b
Repair hideif regexp problems

* lisp/progmodes/hideif.el (hif-white-regexp, hif-tokenize):
Avoid superlinear backtracking behaviour by rewriting regexps
to avoid nested repetitions and make positive progress each time.
Use lazy matching of the innards of /*...*/ comments to avoid
matching too much.
lisp/progmodes/hideif.el