diff options
| author | Alan Mackenzie | 2017-10-25 18:14:00 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2017-10-25 18:14:00 +0000 |
| commit | 46540a1c7adb1b89b6c2f6c9150fe8680c3a5fba (patch) | |
| tree | 72a61f000cc2c6b4bbaba29502c3eae8c500af41 /src/bytecode.c | |
| parent | 57ca409111997176a8428a06cc65f037d4217f3a (diff) | |
| download | emacs-46540a1c7adb1b89b6c2f6c9150fe8680c3a5fba.tar.gz emacs-46540a1c7adb1b89b6c2f6c9150fe8680c3a5fba.zip | |
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.
Diffstat (limited to 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions