fix(treesitter): account for no main query file

This commit is contained in:
Steven Sojka
2020-10-28 07:34:11 -05:00
parent fd7aa6768a
commit e27af09052

View File

@@ -25,7 +25,7 @@ local function filter_files(file_list)
end
end
return { main, unpack(after) }
return main and { main, unpack(after) } or after
end
local function runtime_query_path(lang, query_name)