Vladimir Kazanov writes: > On Tue, 21 Nov 2023 at 04:48, john muhl wrote: > >> FWIW I used it to add tests for lua-ts-mode’s font-lock rules. >> It works well and feels to me like it would be a nice addition >> to Emacs. Thanks for working on it. > > Hey, that's nice to hear! > > Can I take a look at the code? Curious about the way comment > highlighting is implemented in your mode. https://git.sv.gnu.org/cgit/emacs.git/tree/lisp/progmodes/lua-ts-mode.el Attached are the tests. They fail against master since some bugs were found in the process. > I did test popular Emacs major modes (cc-mode and the like, python, > php, etc) but few ts-based ones. And even in the pre-Tree-sitter world > comment detection is rather unstable and needs custom hacks in some > cases.