@sgued @fasterthanlime

A question, in LaTeX land, the big syntax highlighting package, minted, relies on Pygmentize, in python.

Is tree-sitter syntax highlighting better than Pygments, and how ?

@Sobex @sgued Pygments seems to be somewhere between Syntect (regex only) and tree-sitter (scanner+grammar only) since they seem to base themselves on regex BUT allow lexers written in Python. Depends on the grammar I would say? https://pygments.org/docs/lexerdevelopment/
Write your own lexer — Pygments