krzyzanowskim / STTextView-Plugin-Neon

Source Code Syntax Highlighting
MIT License
33 stars 13 forks source link

Crash on Markdown language highlighting #6

Closed polpielladev closed 9 months ago

polpielladev commented 9 months ago

Hi! 👋

First of all, thanks for the great work on STTextView and the Neon plugin, it's amazing!

I have run into an issue recently where if I use the NeonPlugin to parse and highlight Markdown Strings, I get a crash on this line of the Coordinator file of the plugin:

CleanShot 2024-02-11 at 23 32 10@2x

I have done a bit of digging and it looks like there are no highlight queries for the markdown language, which explains the crash. Could this be that there is an issue with the markdown tree sitter or its build process?

Not entirely sure how to regenerate the tree sitter to test it myself, but I am happy to help out to look into it if you know the cause?

krzyzanowskim commented 9 months ago

ha! It does not provide a highlight query. There is an issue https://github.com/ikatyang/tree-sitter-markdown/issues/23 and it looks like we should get it from https://github.com/nvim-treesitter/nvim-treesitter/tree/master/queries/markdown

krzyzanowskim commented 9 months ago

tree-sitter-xcframework 0.208.5 should fix that

polpielladev commented 9 months ago

Amazing! Thanks so much for the super quick fix @krzyzanowskim 🎉 I'll try it out this morning 👍