[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Validating tree-sitter major modes and grammar
From: |
Björn Bidar |
Subject: |
Re: Validating tree-sitter major modes and grammar |
Date: |
Tue, 24 Dec 2024 23:36:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Yuan Fu <casouri@gmail.com> writes:
>> On Dec 22, 2024, at 4:44 PM, Björn Bidar <bjorn.bidar@thaodan.de> wrote:
>>
>> Yuan Fu <casouri@gmail.com> writes:
>>
>>> Continuing from the tree-sitter maternity thread, I cooked up some
>>> script to go over each builtin tree-sitter mode, clone the grammars it
>>> uses, and check whether the font-lock queries are compatible with the
>>> latest version of the grammar. If everything works fine, the script
>>> adds some comment in the source file listing the version that was
>>> checked.
>>
>> Oh that sounds very good. This could be a good workaround for the sort
>> of fast and lose nature of tree-sitter.
>>
>
> Great. Do you think the “verified version” comment will be helpful for
> packagers?
>
It would be helpful in case something goes wrong as a kind of sanity
check but it won't help much for an indicator when to update since I
don't think that would be blocker for updating.
It is helpful but none the less the goal should be that such errors
should be preventable between grammar versions.