]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Fix a c-backward-token-2 call wrongly jumping back over macros.
authorAlan Mackenzie <acm@muc.de>
Sat, 2 Jul 2022 16:12:59 +0000 (16:12 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 2 Jul 2022 16:12:59 +0000 (16:12 +0000)
commitdc3d01a5aff4017ac071bf7f72ab4df493d2b2f6
tree734bde0249208a6a3c8859e8608c6c6ad8fe9c77
parente390396e684c99b4b0b27aa2e0bc1822d8854550
CC Mode: Fix a c-backward-token-2 call wrongly jumping back over macros.

This fixes bug #56256.

* lisp/progmodes/cc-fonts.el (c-font-lock-c++-lambda-captures): Replace a
c-backward-token-2, which could jump back too far leading to an infinite
loop, with a save-excursion to remember the point we've got to go back to.
lisp/progmodes/cc-fonts.el