all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: 67460@debbugs.gnu.org, dmitry@gutov.dev, eliz@gnu.org
Subject: bug#67460: [PATCH] Add ert-font-lock
Date: Fri, 1 Dec 2023 19:51:08 -0800	[thread overview]
Message-ID: <54ebe33b-c0d5-499d-8c11-b2549fdc917a@gmail.com> (raw)
In-Reply-To: <CAAs=0-0tfuNR2zGeMcvRfz_5F+z5dGAHMKjwbnQKS+X2cZRxbg@mail.gmail.com>



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





  reply	other threads:[~2023-12-02  3:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-26 18:47 bug#67460: [PATCH] Add ert-font-lock Vladimir Kazanov
2023-12-02  3:51 ` Yuan Fu [this message]
2023-12-02 12:50 ` Eli Zaretskii
2023-12-03  9:51   ` Vladimir Kazanov
2023-12-03 13:19     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54ebe33b-c0d5-499d-8c11-b2549fdc917a@gmail.com \
    --to=casouri@gmail.com \
    --cc=67460@debbugs.gnu.org \
    --cc=dmitry@gutov.dev \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.