]> git.eshelyaron.com Git - emacs.git/commit
Fix a "wrong side of point" error in CC Mode. Fixes bug #28850.
authorAlan Mackenzie <acm@muc.de>
Wed, 25 Oct 2017 18:14:00 +0000 (18:14 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 25 Oct 2017 18:14:00 +0000 (18:14 +0000)
commit46540a1c7adb1b89b6c2f6c9150fe8680c3a5fba
tree72a61f000cc2c6b4bbaba29502c3eae8c500af41
parent57ca409111997176a8428a06cc65f037d4217f3a
Fix a "wrong side of point" error in CC Mode.  Fixes bug #28850.

The cause was a scanning over a bracket pair taking us beyond the supplied
LIMIT parameter in c-forward-declarator.

* lisp/progmodes/cc-engine.el (c-forward-declarator): Add three checks (<
(point) limit) whilst dealing with tokens after the declared identifier.

* lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Don't supply a LIMIT
argument to `c-forward-declarator' (twice), since we want to fontify up till
the end of a declarator, not an arbitrary jit-lock chunk end.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-fonts.el