unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [ELPA] New package: ert-font-lock
@ 2023-11-18 10:43 Vladimir Kazanov
  2023-11-18 11:18 ` Philip Kaludercic
  0 siblings, 1 reply; 16+ messages in thread
From: Vladimir Kazanov @ 2023-11-18 10:43 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-11-23 13:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-18 10:43 [ELPA] New package: ert-font-lock Vladimir Kazanov
2023-11-18 11:18 ` Philip Kaludercic
2023-11-18 12:07   ` Po Lu
2023-11-18 12:43     ` Eli Zaretskii
2023-11-18 13:14       ` Po Lu
2023-11-18 14:47         ` Philip Kaludercic
2023-11-18 16:23           ` Eli Zaretskii
2023-11-19  9:39           ` Vladimir Kazanov
2023-11-18 14:18       ` john muhl
2023-11-19 10:02         ` Vladimir Kazanov
2023-11-19 10:08       ` Vladimir Kazanov
2023-11-20 18:27         ` Vladimir Kazanov
2023-11-21  4:45           ` john muhl
2023-11-21  7:43             ` Vladimir Kazanov
2023-11-21 16:51               ` john muhl
2023-11-23 13:00                 ` Vladimir Kazanov

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).