diff options
author | Matthieu Coudron <teto@users.noreply.github.com> | 2023-01-22 16:51:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-22 16:51:17 +0100 |
commit | 151b9fc52e3cd69b386eb2dc4e5a0d179667190b (patch) | |
tree | 662caf8389fcc32ec9a074dc60affdfa8248d505 /test/functional/treesitter/language_spec.lua | |
parent | 80bede1dfc6c2fcd5ec013045585802bb18d9fc9 (diff) | |
download | rneovim-151b9fc52e3cd69b386eb2dc4e5a0d179667190b.tar.gz rneovim-151b9fc52e3cd69b386eb2dc4e5a0d179667190b.tar.bz2 rneovim-151b9fc52e3cd69b386eb2dc4e5a0d179667190b.zip |
feat(treesitter): show filetype associated with parser (#17633)
to ease debug. At one point I had an empty filetype and the current message was not helpful enough
Diffstat (limited to 'test/functional/treesitter/language_spec.lua')
-rw-r--r-- | test/functional/treesitter/language_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/treesitter/language_spec.lua b/test/functional/treesitter/language_spec.lua index 1db8381a93..f95b05a1cc 100644 --- a/test/functional/treesitter/language_spec.lua +++ b/test/functional/treesitter/language_spec.lua @@ -17,7 +17,7 @@ describe('treesitter language API', function() pcall_err(exec_lua, "parser = vim.treesitter.get_parser(0, 'borklang')")) -- actual message depends on platform - matches("Failed to load parser: uv_dlopen: .+", + matches("Failed to load parser for language 'borklang': uv_dlopen: .+", pcall_err(exec_lua, "parser = vim.treesitter.require_language('borklang', 'borkbork.so')")) -- Should not throw an error when silent |