ci(deps): update bump_deps script (#23604)

* consistent capitalization (lower-case) of dependency names
* add bundled tree-sitter parsers
This commit is contained in:
Christian Clason 2023-05-13 11:44:56 +02:00 committed by GitHub
parent 512a90520e
commit ed8c44f767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ run({ 'mkdir', '-p', temp_dir })
local function get_dependency(dependency_name)
local dependency_table = {
['LuaJIT'] = {
['luajit'] = {
repo = 'LuaJIT/LuaJIT',
symbol = 'LUAJIT',
},
@ -77,7 +77,7 @@ local function get_dependency(dependency_name)
repo = 'libuv/libuv',
symbol = 'LIBUV',
},
['Luv'] = {
['luv'] = {
repo = 'luvit/luv',
symbol = 'LUV',
},
@ -85,6 +85,26 @@ local function get_dependency(dependency_name)
repo = 'tree-sitter/tree-sitter',
symbol = 'TREESITTER',
},
['tree-sitter-c'] = {
repo = 'tree-sitter/tree-sitter-c',
symbol = 'TREESITTER_C',
},
['tree-sitter-lua'] = {
repo = 'MunifTanjim/tree-sitter-lua',
symbol = 'TREESITTER_LUA',
},
['tree-sitter-vim'] = {
repo = 'neovim/tree-sitter-vim',
symbol = 'TREESITTER_VIM',
},
['tree-sitter-vimdoc'] = {
repo = 'neovim/tree-sitter-vimdoc',
symbol = 'TREESITTER_VIMDOC',
},
['tree-sitter-query'] = {
repo = 'nvim-treesitter/tree-sitter-query',
symbol = 'TREESITTER_QUERY',
},
}
local dependency = dependency_table[dependency_name]
if dependency == nil then