Tree Sitter Vs Regex Language Package Syntax Highligting


#1

After reading heavily into tree-sitter and becoming aware of its power, I was left wondering this question. If tree sitter supports a certain language and you also have a typical language package installed that uses regex to syntax highlight that language, which one will take precedence and become the one that is used?


#2

Tree-sitter should in general. There may be other factors that affect the “score” of the grammar, but equal score should favour tree-sitter