From 3e316204f8ec8450bbaace69d0bf8fe332633fec Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Thu, 29 Dec 2022 21:53:30 +0100 Subject: ci: fix file name for cache calculation --- lua/nvim-treesitter/shell_command_selectors.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/nvim-treesitter/shell_command_selectors.lua b/lua/nvim-treesitter/shell_command_selectors.lua index 17196b81e..9676beb5d 100644 --- a/lua/nvim-treesitter/shell_command_selectors.lua +++ b/lua/nvim-treesitter/shell_command_selectors.lua @@ -99,7 +99,8 @@ function M.select_compiler_args(repo, compiler) } if #vim.tbl_filter(function(file) - return file:match "%.cc$" or file:match "%cpp$" or file:match "%.cxx$" + local ext = vim.fn.fnamemodify(file, ":e") + return ext == "cc" or ext == "cpp" or ext == "cxx" end, repo.files) > 0 then table.insert(args, "-lstdc++") -- cgit v1.2.3-70-g09d2