GNU bug report logs - #67460
[PATCH] Add ert-font-lock

Previous Next

Package: emacs;

Reported by: Vladimir Kazanov <vekazanov <at> gmail.com>

Date: Sun, 26 Nov 2023 18:49:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Yuan Fu <casouri <at> gmail.com>
To: 67460 <at> debbugs.gnu.org, dmitry <at> gutov.dev, eliz <at> gnu.org
Subject: bug#67460: [PATCH] Add ert-font-lock
Date: Fri, 1 Dec 2023 19:51:08 -0800

On 11/26/23 10:47 AM, Vladimir Kazanov wrote:
> As suggested in emacs-devel@ [1], this patch adds ert-lont-lock.el to
> Emacs. Ert-font-lock is an extension to ERT providing an easy way to
> check font faces either in inline strings or resource files.
>
> The assertion syntax is based on Tree-sitter's syntax highlighter unit
> tests [2]. This makes it easy to port existing tree-sitter grammar
> tests to support both new-style ts-based major modes and the
> traditional ones.
>
> [1] https://lists.gnu.org/archive/html/emacs-devel/2023-11/msg00867.html
> [2] https://tree-sitter.github.io/tree-sitter/syntax-highlighting#unit-testing
Thanks for working on this, this is fantastic! I had a cursory look and 
it is very well written. It will be a great boon to the tree-sitter 
modes, which don't have tests for font-locking right now.

Yuan




This bug report was last modified 1 year and 168 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.