Some errors occurs when opening a Markdown file containing LaTeX syntax:
Error in decoration provider treesitter/highlighter.win:
Error executing lua: .../current/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 20:2. Invalid node type "luacode_environment":
(luacode_environment
^
stack traceback:
[C]: in function '_ts_parse_query'
.../current/share/nvim/runtime/lua/vim/treesitter/query.lua:252: in function 'fn'
...vim/current/share/nvim/runtime/lua/vim/func/_memoize.lua:58: in function 'fn'
...vim/current/share/nvim/runtime/lua/vim/func/_memoize.lua:58: in function 'get'
...t/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:128: in function 'new'
...t/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:511: in function 'add_child'
...t/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:395: in function '_add_injections'
...t/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:447: in function 'parse'
...t/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:460: in function 'parse'
...nt/share/nvim/runtime/lua/vim/treesitter/highli
Also, opening C:\Users\<USERNAME>\AppData\Local\nvim-data\lazy\nvim-treesitter\queries\latex\injections.scm reports those errors:
├╴ Invalid node type "luacode_environment" latex [20, 2]
├╴ Invalid node type "asy_environment" latex [24, 2]
└╴ Invalid node type "asydef_environment" latex [28, 2]
To Reproduce
Paste this line inside a Markdown buffer with treesitter enabled:
Describe the bug
Some errors occurs when opening a Markdown file containing LaTeX syntax:
Also, opening
C:\Users\<USERNAME>\AppData\Local\nvim-data\lazy\nvim-treesitter\queries\latex\injections.scm
reports those errors:To Reproduce
Paste this line inside a Markdown buffer with treesitter enabled:
excluding the triple backtics.
Expected behavior
Should not report errors.
Output of
:checkhealth nvim-treesitter
Output of
nvim --version
Additional context
No response