]> git.eshelyaron.com Git - emacs.git/commit
Improve ert-font-lock assertion parser (Bug#69714)
authorVladimir Kazanov <vekazanov@gmail.com>
Tue, 12 Mar 2024 11:14:54 +0000 (11:14 +0000)
committerEshel Yaron <me@eshelyaron.com>
Thu, 28 Mar 2024 10:28:57 +0000 (11:28 +0100)
commit5c6a983783f404437a2099a32f5ecda25a689dce
tree29e9546fc72f080a11c4b3c1b82ecf097589d985
parent7c4ebd0450937e44db5a0e82883ea1adf37a06e6
Improve ert-font-lock assertion parser (Bug#69714)

Fail on files with no assertions, parser now accepts multiple
carets per line and face lists:
* lisp/emacs-lisp/ert-font-lock.el: Assertion parser fix.
* test/lisp/emacs-lisp/ert-font-lock-resources/no-asserts.js:
* test/lisp/emacs-lisp/ert-font-lock-tests.el
(test-parse-comments--no-assertion-error)
(test-syntax-highlight-inline--caret-negated-wrong-face)
(test-macro-test--file-no-asserts): New test cases.
* doc/misc/ert.texi (Syntax Highlighting Tests): More syntax examples.

(cherry picked from commit cdd7093e17a33a6efc4721af461af180e5af602d)
doc/misc/ert.texi
lisp/emacs-lisp/ert-font-lock.el
test/lisp/emacs-lisp/ert-font-lock-resources/no-asserts.js [new file with mode: 0644]
test/lisp/emacs-lisp/ert-font-lock-tests.el