aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/luaeval_spec.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-01-27 09:42:59 +0000
committerGitHub <noreply@github.com>2022-01-27 10:42:59 +0100
commitf9080b24c4f60c3772db2b6e713ea5a6a3b52f1e (patch)
treefc288ba0bbecc18b12779ad75d82f831d5de5a7e /test/functional/lua/luaeval_spec.lua
parent2320f705c42cc7d51045b34516264f38abb7ecde (diff)
downloadrneovim-f9080b24c4f60c3772db2b6e713ea5a6a3b52f1e.tar.gz
rneovim-f9080b24c4f60c3772db2b6e713ea5a6a3b52f1e.tar.bz2
rneovim-f9080b24c4f60c3772db2b6e713ea5a6a3b52f1e.zip
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.
Diffstat (limited to 'test/functional/lua/luaeval_spec.lua')
0 files changed, 0 insertions, 0 deletions