Error (freezes nvim) when opening file with code block name in different case (e.g. "Python", "JSON", "R"): no such language: R
#727
Labels
bug
Something isn't working
Describe the bug
This is a macOS only bug, I cannot reproduce it in linux.
When opening a markdown file that contains code block with same name with the treesitter parser but have different case (e.g.
python
vsPython
,r
vsR
,Json
vsjson
), you will get the following error:This error is actually the same error as in nvim-treesitter: nvim-treesitter/nvim-treesitter#6642
Steps to reproduce
open the following example org mode file, say : hello.org
Open it in neovim, get billions of errors so that you can't do anything with neovim.
https://pastebin.com/sSLFxXBZ
Expected behavior
Emacs functionality
No response
Minimal init.lua
Screenshots and recordings
OS / Distro
macos 13.4
Neovim version/commit
0.10
Additional context
R
andr
are both considered as "Canonical" name for R language, so you would expect to see different authors useR
andr
interchangably from different sources. While treesitter usesr
as its name, theorgmode
should handles language nameR
robustly.The text was updated successfully, but these errors were encountered: