aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Lyng Johansen <sebastian@lyngjohansen.com>2025-02-17 17:18:33 +0100
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:40 +0200
commit02a1a0537c450fe6c9dd525320c688a54aa52baa (patch)
tree38ac482e95c28a718e940b964a45f0be68b8284d
parentfeat(parsers): rework tiers (diff)
downloadnvim-treesitter-02a1a0537c450fe6c9dd525320c688a54aa52baa.tar
nvim-treesitter-02a1a0537c450fe6c9dd525320c688a54aa52baa.tar.gz
nvim-treesitter-02a1a0537c450fe6c9dd525320c688a54aa52baa.tar.bz2
nvim-treesitter-02a1a0537c450fe6c9dd525320c688a54aa52baa.tar.lz
nvim-treesitter-02a1a0537c450fe6c9dd525320c688a54aa52baa.tar.xz
nvim-treesitter-02a1a0537c450fe6c9dd525320c688a54aa52baa.tar.zst
nvim-treesitter-02a1a0537c450fe6c9dd525320c688a54aa52baa.zip
fix(install): early return if parser_info does not exist
-rw-r--r--SUPPORTED_LANGUAGES.md3
-rw-r--r--lua/nvim-treesitter/install.lua1
-rw-r--r--lua/nvim-treesitter/parsers.lua76
3 files changed, 41 insertions, 39 deletions
diff --git a/SUPPORTED_LANGUAGES.md b/SUPPORTED_LANGUAGES.md
index 648c0d445..e64daff2d 100644
--- a/SUPPORTED_LANGUAGES.md
+++ b/SUPPORTED_LANGUAGES.md
@@ -151,6 +151,7 @@ html_tags (queries only)[^html_tags] | unstable | `H IJ ` | @TravonteD
jsx (queries only)[^jsx] | unstable | `HFIJ ` | @steelsojka
[julia](https://github.com/tree-sitter/tree-sitter-julia) | unstable | `HFIJL` | @fredrikekre
[just](https://github.com/IndianBoy42/tree-sitter-just) | unstable | `HFIJL` | @Hubro
+[kcl](https://github.com/kcl-lang/tree-sitter-kcl) | unstable | `HF J ` | @bertbaron
[kconfig](https://github.com/tree-sitter-grammars/tree-sitter-kconfig) | unstable | `HFIJL` | @amaanq
[kdl](https://github.com/tree-sitter-grammars/tree-sitter-kdl) | unstable | `HFIJL` | @amaanq
[kotlin](https://github.com/fwcd/tree-sitter-kotlin) | unstable | `HF JL` | @SalBakraa
@@ -261,7 +262,7 @@ jsx (queries only)[^jsx] | unstable | `HFIJ ` | @steelsojka
[sosl](https://github.com/aheber/tree-sitter-sfapex) | unstable | `H    ` | @aheber, @xixiafinland
[sourcepawn](https://github.com/nilshelmig/tree-sitter-sourcepawn) | unstable | `H  JL` | @Sarrus1
[sparql](https://github.com/GordianDziwis/tree-sitter-sparql) | unstable | `HFIJL` | @GordianDziwis
-[sql](https://github.com/derekstride/tree-sitter-sql) | unstable | `H IJ ` | @derekstride
+[sql](https://github.com/derekstride/tree-sitter-sql) | unstable | `HFIJ ` | @derekstride
[squirrel](https://github.com/tree-sitter-grammars/tree-sitter-squirrel) | unstable | `HFIJL` | @amaanq
[ssh_config](https://github.com/tree-sitter-grammars/tree-sitter-ssh-config) | unstable | `HFIJL` | @ObserverOfTime
[starlark](https://github.com/tree-sitter-grammars/tree-sitter-starlark) | unstable | `HFIJL` | @amaanq
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua
index 930a8f8f6..c2a5ea396 100644
--- a/lua/nvim-treesitter/install.lua
+++ b/lua/nvim-treesitter/install.lua
@@ -91,6 +91,7 @@ local function get_parser_install_info(lang)
if not parser_config then
log.error('Parser not available for language "' .. lang .. '"')
+ return
end
return parser_config.install_info
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua
index 1d2329523..fff614bc6 100644
--- a/lua/nvim-treesitter/parsers.lua
+++ b/lua/nvim-treesitter/parsers.lua
@@ -225,7 +225,7 @@ return {
},
cmake = {
install_info = {
- revision = 'e409ae33f00e04cde30f2bcffb979caf1a33562a',
+ revision = 'cd00bbcb77fe31283ca79b0038387ec7411759ae',
url = 'https://github.com/uyha/tree-sitter-cmake',
},
maintainers = { '@uyha' },
@@ -336,7 +336,7 @@ return {
},
dart = {
install_info = {
- revision = 'e81af6ab94a728ed99c30083be72d88e6d56cf9e',
+ revision = '80e23c07b64494f7e21090bb3450223ef0b192f4',
url = 'https://github.com/UserNobody14/tree-sitter-dart',
},
maintainers = { '@akinsho' },
@@ -384,7 +384,7 @@ return {
},
djot = {
install_info = {
- revision = '67e6e23ba7be81a4373e0f49e21207bdc32d12a5',
+ revision = 'eb31845d59b9ee8c1b2098e78e9ca72004bd1579',
url = 'https://github.com/treeman/tree-sitter-djot',
},
maintainers = { '@NoahTheDuke' },
@@ -417,7 +417,7 @@ return {
dtd = {
install_info = {
location = 'dtd',
- revision = '26e95de449d772bc2dd4f0382580f84e2a0754d6',
+ revision = '2128a0b249263e238d88cb894dad00c3168fea37',
url = 'https://github.com/tree-sitter-grammars/tree-sitter-xml',
},
maintainers = { '@ObserverOfTime' },
@@ -425,7 +425,7 @@ return {
},
earthfile = {
install_info = {
- revision = '6695a2dfea5f8d9076b11f9bebcac8184e405e67',
+ revision = 'ae378d9d1306e9a967698516041f6f8803db5592',
url = 'https://github.com/glehmann/tree-sitter-earthfile',
},
maintainers = { '@glehmann' },
@@ -471,7 +471,7 @@ return {
},
elixir = {
install_info = {
- revision = '86ec2ed45d6d9433b4e0b88cd3d96796bd45625f',
+ revision = '450a8194f5a66561135962cfc8d7545a27b61c4c',
url = 'https://github.com/elixir-lang/tree-sitter-elixir',
},
maintainers = { '@connorlay' },
@@ -510,7 +510,7 @@ return {
},
enforce = {
install_info = {
- revision = 'cf853e5f56f1babe5ec573e356f6fbb4784bf5c1',
+ revision = '8201c3c354c34b96d5a531c8e63d262209ee06cb',
url = 'https://github.com/simonvic/tree-sitter-enforce',
},
maintainers = { '@simonvic' },
@@ -591,7 +591,7 @@ return {
},
fortran = {
install_info = {
- revision = '022b032d31299c5d8336cdfd0ece97de20a609c0',
+ revision = '21b740801794b6570a0380f8aef22bb67214ea65',
url = 'https://github.com/stadelmanma/tree-sitter-fortran',
},
maintainers = { '@amaanq' },
@@ -608,7 +608,7 @@ return {
fsharp = {
install_info = {
location = 'fsharp',
- revision = 'ad824dea984734406b50699c5f388a7412e85946',
+ revision = '02929f084726db969e5b916d144436f248146824',
url = 'https://github.com/ionide/tree-sitter-fsharp',
},
maintainers = { '@nsidorenco' },
@@ -1040,7 +1040,7 @@ return {
},
inko = {
install_info = {
- revision = '0b08a8f976456a9271f70d4682143328d7224115',
+ revision = 'f58a87ac4dc6a7955c64c9e4408fbd693e804686',
url = 'https://github.com/inko-lang/tree-sitter-inko',
},
maintainers = { '@yorickpeterse' },
@@ -1100,7 +1100,7 @@ return {
jinja = {
install_info = {
location = 'tree-sitter-jinja',
- revision = '41b17a33f335130ce9861fd21bffeb88fd768ef4',
+ revision = '07a62adf99c0f41e0cab7ab523541309a8d73dc4',
url = 'https://github.com/cathaysia/tree-sitter-jinja',
},
maintainers = { '@cathaysia' },
@@ -1111,7 +1111,7 @@ return {
jinja_inline = {
install_info = {
location = 'tree-sitter-jinja_inline',
- revision = '41b17a33f335130ce9861fd21bffeb88fd768ef4',
+ revision = '07a62adf99c0f41e0cab7ab523541309a8d73dc4',
url = 'https://github.com/cathaysia/tree-sitter-jinja',
},
maintainers = { '@cathaysia' },
@@ -1191,8 +1191,8 @@ return {
},
kcl = {
install_info = {
+ revision = 'b0b2eb38009e04035a6e266c7e11e541f3caab7c',
url = 'https://github.com/kcl-lang/tree-sitter-kcl',
- files = { 'src/parser.c', 'src/scanner.c' },
},
maintainers = { '@bertbaron' },
tier = 2,
@@ -1280,7 +1280,7 @@ return {
},
liquid = {
install_info = {
- revision = '23ac814111e2b4b4b083e2c92219af2d5b74d13d',
+ revision = '6e03a054a71cd419d9702725243137641e97ba51',
url = 'https://github.com/hankthetank27/tree-sitter-liquid',
},
maintainers = { '@hankthetank27' },
@@ -1399,7 +1399,7 @@ return {
},
meson = {
install_info = {
- revision = 'c5fffb8edd39f22644084ab3f73a924a75721ee3',
+ revision = '12edaf0dfef0a43bc74336a4432b2db1c65788d6',
url = 'https://github.com/tree-sitter-grammars/tree-sitter-meson',
},
maintainers = { '@Decodetalkers' },
@@ -1408,7 +1408,7 @@ return {
mlir = {
install_info = {
generate = true,
- revision = '9d83ca263fa7ec8ac7a5fd8ad14891b2dc583a32',
+ revision = 'af14b427119a7428b461277bfc43abe5864d995d',
url = 'https://github.com/artagnon/tree-sitter-mlir',
},
maintainers = { '@artagnon' },
@@ -1472,7 +1472,7 @@ return {
},
nix = {
install_info = {
- revision = 'b3a88cf3e597d48c33657deca4fda7a75c0069c1',
+ revision = '48057cf966641e7a49b09700550751195c34bcb5',
url = 'https://github.com/cstrahan/tree-sitter-nix',
},
maintainers = { '@leo60228' },
@@ -1489,7 +1489,7 @@ return {
},
nu = {
install_info = {
- revision = '2a153c88d5d44d96653057c7cc14292f4e641bef',
+ revision = 'b99dc3b7b26337d84f95c0de4dda81077b03e5c7',
url = 'https://github.com/nushell/tree-sitter-nu',
},
maintainers = { '@abhisheksingh0x558' },
@@ -1516,7 +1516,7 @@ return {
ocaml = {
install_info = {
location = 'grammars/ocaml',
- revision = '91e4d9106f5da8199ab5158ba65e02da3e664597',
+ revision = 'db52ba3f7f33c9949bba115a813d7c30a359cd87',
url = 'https://github.com/tree-sitter/tree-sitter-ocaml',
},
maintainers = { '@undu' },
@@ -1525,7 +1525,7 @@ return {
ocaml_interface = {
install_info = {
location = 'grammars/interface',
- revision = '91e4d9106f5da8199ab5158ba65e02da3e664597',
+ revision = 'db52ba3f7f33c9949bba115a813d7c30a359cd87',
url = 'https://github.com/tree-sitter/tree-sitter-ocaml',
},
maintainers = { '@undu' },
@@ -1551,7 +1551,7 @@ return {
},
pascal = {
install_info = {
- revision = 'd0ebabefaea9ac3f6fc3004cf08cd121b66da9e4',
+ revision = '78426d96bde7114af979e314283e45d087603428',
url = 'https://github.com/Isopod/tree-sitter-pascal',
},
maintainers = { '@Isopod' },
@@ -1586,7 +1586,7 @@ return {
php = {
install_info = {
location = 'php',
- revision = 'f3a19ab3217a6e838870fc7142fa492d1fd7a7c9',
+ revision = 'f7cf7348737d8cff1b13407a0bfedce02ee7b046',
url = 'https://github.com/tree-sitter/tree-sitter-php',
},
maintainers = { '@tk-shirasaka', '@calebdw' },
@@ -1597,7 +1597,7 @@ return {
php_only = {
install_info = {
location = 'php_only',
- revision = 'f3a19ab3217a6e838870fc7142fa492d1fd7a7c9',
+ revision = 'f7cf7348737d8cff1b13407a0bfedce02ee7b046',
url = 'https://github.com/tree-sitter/tree-sitter-php',
},
maintainers = { '@tk-shirasaka', '@calebdw' },
@@ -1659,7 +1659,7 @@ return {
powershell = {
filetype = 'ps1',
install_info = {
- revision = '32fe49cc5d4a2d5a976dacafc0da16d98787866b',
+ revision = 'e904962e25858b7e8e19c653e737ad3b7d1c55bd',
url = 'https://github.com/airbus-cert/tree-sitter-powershell',
},
maintainers = { '@L2jLiga' },
@@ -1853,7 +1853,7 @@ return {
razor = {
install_info = {
generate_from_json = true,
- revision = 'a47cd8ca148685629739a4ab69f58864800fbdab',
+ revision = 'fe46ce5ea7d844e53d59bc96f2175d33691c61c5',
url = 'https://github.com/tris203/tree-sitter-razor',
},
maintainers = { '@tris203' },
@@ -1901,7 +1901,7 @@ return {
},
requirements = {
install_info = {
- revision = '5ad9b7581b3334f6ad492847d007f2fac6e6e5f2',
+ revision = '728910099ddea7f1f94ea95a35a70d1ea76a1639',
url = 'https://github.com/tree-sitter-grammars/tree-sitter-requirements',
},
maintainers = { '@ObserverOfTime' },
@@ -1958,7 +1958,7 @@ return {
},
rst = {
install_info = {
- revision = '899e073a10012b8028b643d676c30bbf9c64a45d',
+ revision = '4e562e1598b95b93db4f3f64fe40ddefbc677a15',
url = 'https://github.com/stsewd/tree-sitter-rst',
},
maintainers = { '@stsewd' },
@@ -1982,7 +1982,7 @@ return {
},
rust = {
install_info = {
- revision = '2eaf126458a4d6a69401089b6ba78c5e5d6c1ced',
+ revision = '02da1b25f6dfc7341ddb80f37f708cdd9301be2d',
url = 'https://github.com/tree-sitter/tree-sitter-rust',
},
maintainers = { '@amaanq' },
@@ -2043,7 +2043,7 @@ return {
},
slim = {
install_info = {
- revision = 'a0f08e85b787248219ea645423c5916c8d620ef6',
+ revision = '546e3aa1af8a3b355c7734efccd9a759ffc0b43a',
url = 'https://github.com/theoo/tree-sitter-slim',
},
maintainers = { '@theoo' },
@@ -2171,7 +2171,7 @@ return {
styled = {
install_info = {
generate_from_json = true,
- revision = '75d3ad20818c30c49b445ca2cb35999c278b3453',
+ revision = '319cdcaa0346ba6db668a222d938e5c3569e2a51',
url = 'https://github.com/mskelton/tree-sitter-styled',
},
maintainers = { '@mskelton' },
@@ -2188,7 +2188,7 @@ return {
superhtml = {
install_info = {
location = 'tree-sitter-superhtml',
- revision = '9266b3131bbcc0705b3b752bcb7478871a143740',
+ revision = '15ff939100f9d52342445407973f3ce125a8437e',
url = 'https://github.com/kristoff-it/superhtml',
},
maintainers = { '@rockorager' },
@@ -2223,7 +2223,7 @@ return {
swift = {
install_info = {
generate = true,
- revision = '1ebc09c38f41d6aab7dd65ca0f8ea032ced0364f',
+ revision = '42ad8f6b4dc9b46285893cc37b460323b54932d4',
url = 'https://github.com/alex-pinkus/tree-sitter-swift',
},
maintainers = { '@alex-pinkus' },
@@ -2339,7 +2339,7 @@ return {
},
tlaplus = {
install_info = {
- revision = 'd711f24c93221cdfc9a9b4dbb0998f528fc982ac',
+ revision = '4ba91b07b97741a67f61221d0d50e6d962e4987e',
url = 'https://github.com/tlaplus-community/tree-sitter-tlaplus',
},
maintainers = { '@ahelwer', '@susliko' },
@@ -2485,7 +2485,7 @@ return {
v = {
install_info = {
location = 'tree_sitter_v',
- revision = '1047c9d876451c3fcf78343fff26cdfff3855b8c',
+ revision = '532bebd50742ef15949bdd67c36d46697c847628',
url = 'https://github.com/vlang/v-analyzer',
},
maintainers = { '@kkharji', '@amaanq' },
@@ -2517,7 +2517,7 @@ return {
},
vhdl = {
install_info = {
- revision = 'cfc522af3e49c1a00ae74e01aa14e19818dab8f2',
+ revision = 'db1d7446bd07d811981734cd501fe1994cbad99d',
url = 'https://github.com/jpt13653903/tree-sitter-vhdl',
},
maintainers = { '@jpt13653903' },
@@ -2610,7 +2610,7 @@ return {
xml = {
install_info = {
location = 'xml',
- revision = '26e95de449d772bc2dd4f0382580f84e2a0754d6',
+ revision = '2128a0b249263e238d88cb894dad00c3168fea37',
url = 'https://github.com/tree-sitter-grammars/tree-sitter-xml',
},
maintainers = { '@ObserverOfTime' },
@@ -2668,7 +2668,7 @@ return {
ziggy = {
install_info = {
location = 'tree-sitter-ziggy',
- revision = 'acf2b6b5aa8b9ce93f4a1ef1adf4e95c06db7831',
+ revision = 'af41bdb5b1d64404c2ec7eb1d9de01083c0d2596',
url = 'https://github.com/kristoff-it/ziggy',
},
maintainers = { '@rockorager' },
@@ -2677,7 +2677,7 @@ return {
ziggy_schema = {
install_info = {
location = 'tree-sitter-ziggy-schema',
- revision = 'acf2b6b5aa8b9ce93f4a1ef1adf4e95c06db7831',
+ revision = 'af41bdb5b1d64404c2ec7eb1d9de01083c0d2596',
url = 'https://github.com/kristoff-it/ziggy',
},
maintainers = { '@rockorager' },