]> git.eshelyaron.com Git - emacs.git/commit
objc-mode: Fix exceptions in fontification.
authorAlan Mackenzie <acm@muc.de>
Tue, 4 Jul 2023 12:43:31 +0000 (12:43 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 4 Jul 2023 12:43:31 +0000 (12:43 +0000)
commit793a416653af0e4be5b6adec9323a1dafd1545eb
tree1ccba869ee0bc5f6b56b8d310797f1b22fc3b54d
parentec89acba5f5652b661f364c5f4e9c43b85a2f433
objc-mode: Fix exceptions in fontification.

These exceptions ("Invalid search bound (wrong side of point)")
were observed in test suite file class-24.m when moving point
up and down a line at a time.

* lisp/progmodes/cc-engine.el (c-forward-declarator): In the
c-syntactic-re-search-forward ~30 lines from the end of the
function amend the regexp for objc-mode such that "@end"
terminates the search, but "<" doesn't.

* lisp/progmodes/cc-fonts.el
(c-make-font-lock-search-function): supply a non-nil
CHECK-POINT argument to c-make-font-lock-search-form.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-fonts.el