diff options
author | L Lllvvuu <git@llllvvuu.dev> | 2023-09-13 16:51:54 -0700 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2023-09-16 11:12:06 +0100 |
commit | 908843df61fc80f160392edc0af0d1672a8f9a68 (patch) | |
tree | 37cd0c2d22e3855a1dd0fd003a63c77a03583fcd /runtime/lua/vim/_options.lua | |
parent | 40bfca744dd0c87df6ec2ab776f982636e4b0904 (diff) | |
download | rneovim-908843df61fc80f160392edc0af0d1672a8f9a68.tar.gz rneovim-908843df61fc80f160392edc0af0d1672a8f9a68.tar.bz2 rneovim-908843df61fc80f160392edc0af0d1672a8f9a68.zip |
fix(languagetree): apply `resolve_lang` to `metadata['injection.language']`
`resolve_lang` is applied to `@injection.language` when it's supplied as a
capture:
https://github.com/neovim/neovim/blob/f5953edbac14febce9d4f8a3c35bdec1eae26fbe/runtime/lua/vim/treesitter/languagetree.lua#L766-L768
If we want to support `metadata['injection.language']` (as per #22518 and
[tree-sitter upstream](https://tree-sitter.github.io/tree-sitter/syntax-highlighting#language-injection))
then the behavior should be consistent.
Fixes: nvim-treesitter/nvim-treesitter#4918
Diffstat (limited to 'runtime/lua/vim/_options.lua')
0 files changed, 0 insertions, 0 deletions