neovim/runtime/lua/vim/treesitter
Lewis Russell f9080b24c4
fix(ts): escape lang when loading parsers (#16668)
When trying to load a language parser, escape the value of
the language.

With language injection, the language might be picked up from the
buffer. If this value is erroneous it can cause `nvim_get_runtime_file`
to hard error.

E.g., the markdown expression `~~~{` will extract '{' as a language and
then try to get the parser using `parser/{*` as the pattern.
2022-01-27 10:42:59 +01:00
..
health.lua fix(healthcheck): update builtins to the new convention #15914 2021-10-05 05:05:33 -07:00
highlighter.lua docs: make Lua docstrings consistent #15255 2021-08-22 13:55:28 -07:00
language.lua fix(ts): escape lang when loading parsers (#16668) 2022-01-27 10:42:59 +01:00
languagetree.lua chore: fix typos (#16816) 2022-01-04 11:07:40 -07:00
query.lua perf(treesitter): cache query parsing 2022-01-06 13:20:22 +01:00