mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
f9080b24c4
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. |
||
---|---|---|
.. | ||
highlight_spec.lua | ||
language_spec.lua | ||
node_spec.lua | ||
parser_spec.lua |