emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ELPA] New package: ert-font-lock


From: Vladimir Kazanov
Subject: [ELPA] New package: ert-font-lock
Date: Sat, 18 Nov 2023 10:43:20 +0000

Hi all,

I want to propose a new package to be included in ELPA. ert-font-lock
(ERT Font Lock) is an extension to the standard ERT unit testing tool
that makes it possible to write font-locking tests using a
comment-based syntax. The syntax itself is based on the Tree-sitter
unit testing system
(https://tree-sitter.github.io/tree-sitter/syntax-highlighting#unit-testing).

Find the package along with a test suite and a README here:
https://github.com/vkazanov/ert-font-lock

I am the sole author of the package, and did sign FSF papers some time
ago so this should not be an issue.

Comments, suggestions and critique are very welcome as the package is
very new. I am open to ideas on the best places to publish the package
if ELPA is not suitable for it.

Some additional context.

A while ago I created quakec-mode
(https://github.com/vkazanov/quakec-mode). One of the most painful
things about the mode is regex-based syntax highlighting. So I turned
to creating a Tree-sitter grammar
(https://github.com/vkazanov/tree-sitter-quakec) as well as a TS-based
mode (https://github.com/vkazanov/quakec-ts-mode).

While doing the syntax highlighting part proved to be much, much
easier, I couldn't do work without relying on some kind of unit tests.
Existing font-lock systems didn't feel convenient compared to the way
Tree-sitter specifies parser tests so I replicated that.

Thank you

-- 
Regards,

Vladimir Kazanov



reply via email to

[Prev in Thread] Current Thread [Next in Thread]