]> git.eshelyaron.com Git - emacs.git/commit
Fix an infinite loop in C++ Mode when we have "{ .... [ .... }"
authorAlan Mackenzie <acm@muc.de>
Thu, 25 Aug 2016 16:21:55 +0000 (16:21 +0000)
committerAlan Mackenzie <acm@muc.de>
Thu, 25 Aug 2016 16:21:55 +0000 (16:21 +0000)
commit93c67f6b2c98ab69e25d2ca7417bcf6c15a165db
treee93367ebdc233f2097be01ca3bed05e67a9d9e4b
parent5e84dcefb4b7fcf3b5af985345ed1ee5ef5df135
Fix an infinite loop in C++ Mode when we have "{ .... [ .... }"

* lisp/progmodes/cc-fonts.el (c-font-lock-c++-lambda-captures): In the inner
`while' form's condition, check for "\\s)" rather than merely "\\]", so that
the loop won't hang at a "terminating" paren of a different type (due to the
c-syntactic-re-search-forward at the end of the loop stopping at such
characters).
lisp/progmodes/cc-fonts.el