vimPlugins.nvim-treesitter: prefix version with 0.0.0+rev=

This makes diffing two nixos systems less noisy,
as no longer short commits starting with numbers are counted as versions
and with letters as pname.
This commit is contained in:
Sandro Jäckel 2023-03-27 00:30:17 +02:00
parent 05dbf8731b
commit 83ae03de66
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
2 changed files with 181 additions and 181 deletions

View file

@ -35,7 +35,7 @@ def generate_grammar(item):
generated = f""" {lang} = buildGrammar {{
language = "{lang}";
version = "{rev[:7]}";
version = "0.0.0+rev={rev[:7]}";
src = """
generated += subprocess.check_output(["nurl", url, rev, "--indent=4"], text=True)