tree-sitter-grammars / tree-sitter-markdown

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

Add highlighting support for code spans #39

Closed aidan-smith closed 2 years ago

aidan-smith commented 2 years ago

As seen here https://github.github.com/gfm/#code-spans

aidan-smith commented 2 years ago

If given a bit of direction I'd be happy to implement this myself and submit at PR!

MDeiml commented 2 years ago

This is already implemented, though a bit buggy. What application are you using this parser with?

aidan-smith commented 2 years ago

I was using it with neovim, it looks like back ticks are a slightly different color, but don't highlight the text inside any differently than without.

MDeiml commented 2 years ago

Hm, did you try updating nvim-treesitter or running :TSUpdate. It is working for me. It might also be that your color scheme is highlighting the TSLiteral group the same as TSText you might want to have a look at that.

MDeiml commented 2 years ago

I'm going to close this as code spans seem to be working for other people, so this is probably not an issue with the parser but rather your configuration or some other tool you are using. I'd be happy to help you find the problem though.