neovim/test/functional/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
..
highlight_spec.lua feat(treesitter): allow to set highlight priority for queries 2021-07-22 21:38:57 +02:00
language_spec.lua feat(ts): include parser ABI version in checkhealth 2021-04-06 19:02:58 +02:00
node_spec.lua feat(treesitter): add next, prev sibling method 2021-08-20 11:58:15 -04:00
parser_spec.lua fix(ts): escape lang when loading parsers (#16668) 2022-01-27 10:42:59 +01:00