Get the latest tech news
Emacs Tree-sitter custom highlighting
A few years ago I blogged about custom tree-sitter-based syntax highlighting in emacs . I started out with highlighting certain keywords in...
In some projects I'm working with horizontal and vertical measurements, and I thought it would be nice to highlight those variable names differently. In some projects I'm working with Delaunay+Voronoi meshes, and I wanted to highlight the triangles, edges, and polygons differently. In that blog post from a few years ago, I had used emacs tree-sitter mode to implement this type of highlighting.
Or read this on Hacker News