tree-sitter-grammars / tree-sitter-markdown

Markdown grammar for tree-sitter
MIT License
379 stars 45 forks source link

Segfault in neovim on roc FAQ.md #44

Closed kyazdani42 closed 2 years ago

kyazdani42 commented 2 years ago

Hi ! First thanks a lot for maintaining this markdown parser :)

Neovim crashes with a segfault when opening the FAQ.md file in the source code from roc lang (https://www.roc-lang.org/), and i believe it's related to the markdown parser, but i'm not a 100% sure because it could be related to some other parser that is injected.

I can take a look when i have some time during this week if you wish.

MDeiml commented 2 years ago

The file doesn't produce any segfaults when I use it with this parser outside of neovim. Maybe this is a problem with the elm parser?

kyazdani42 commented 2 years ago

I haven't been able to crash the elm parser by extracting the injected bits into files. This might be an issue with neovim itself then ?

kyazdani42 commented 2 years ago

Closing this one since replacing elm tags with haskell doesn't crash the parser. Although i haven't been able to reproduce the elm crash in elm files.