News for hackers. Stuff that matters.
Re:Commercial-Emacs by giraffe_lady on Thursday June 02, 2022 @04:42PM (#31600252)
Tree-sitter highlighting is interesting. I usually find emacs to have slightly worse syntax highlighting than other editors for most languages I use.

When I've mentioned this before someone usually explains why I am wrong and it is actually superior or whatever. I do not care I don't like it as much. It's nowhere near enough to drop emacs over but if this changes it I might prefer it.

Re:Commercial-Emacs by __david__ on Thursday June 02, 2022 @05:12PM (#31600568)
There is tree-sitter work being done in a feature branch of the official Emacs git repo: https://git.savannah.gnu.org/cgit/emacs.git/log/?h=feature/t...

It's still very much a WIP, but the fact that it's there at all is promising.

Re:Commercial-Emacs by natrys on Thursday June 02, 2022 @05:01PM (#31600449)
I don't know what this fork brings to table, but you could try tree-sitter today with your vanilla Emacs using a package[1] that works via dynamic module.

Personally I am more interested in getting structural selection and navigation reliably working for any language. There is also a package named combobulate[2] to help with that.

[1] https://emacs-tree-sitter.github.io/

[2] https://github.com/mickeynp/combobulate

Re:Commercial-Emacs by frou_dh on Thursday June 02, 2022 @05:07PM (#31600514)
Dunno about the overall ceiling of Emacs' syntax highlighting capabilities. But the few times in the past that I've had reason to look at the definition of the highlighting for specific languages, the Lisp code has looked like horrific imperative rats nests.
Re:Commercial-Emacs by jasperry on Thursday June 02, 2022 @09:05PM (#31602916)
As with most things Emacs, there is no real ceiling to what you can do, because elisp. But as you observed, there's a reason that using syntax-table rules to write a highlighter has been called "black magic".

The sooner there is anything even remotely grammar-based for creating highlighters in Emacs, the better.

Re:Commercial-Emacs by mark_h on Thursday June 02, 2022 @05:02PM (#31600460)
You can use tree-sitter already if you have dynamic module support: https://github.com/emacs-tree-sitter/elisp-tree-sitter
Re:Commercial-Emacs by HillBates on Thursday June 02, 2022 @05:48PM (#31600945)
1) highlighting - most unnecessary thing people invented, except values and :things: in "" 2) LSP client provides these things exactly as other programs do. GNU means do everything different because otherwise it is not GNU, so maybe thats not good thing after all. This push is so strong even Steve Jobs started to Think Different after cloning BSD in 199x...