helix
helix copied to clipboard
Reverse query precedence ordering
This is a work in progress: we need to check the other tree-sitter queries (injections, indents, textobjects) and ensure that they also use the latest match. We also need to re-order and check all of the existing highlight queries. For now I've started small and only ported over Erlang's highlights.
Closes https://github.com/helix-editor/helix/issues/9436
dump question: couldn't we simply write a script that reads all queries and reverses all lines?
It would be ugly but at least trivially correct.
It would probably be a little tricky to write so that it handles comments correctly but yeah that would be the most efficient way
There's also files that were copied and weren't properly reversed in the first place
I added a progress checklist to the PR description. I'm going through these one by one and comparing them to the nvim-treesitter ordering: in many cases there's nothing to do or the file wasn't correctly reordered in the first place.