tree-sitter-grammars / tree-sitter-markdown

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

List markers highlight? #19

Closed LamprosPitsillos closed 2 years ago

LamprosPitsillos commented 2 years ago

Is there a way for the list markers to get some highlighting? Thanks!

kofm commented 2 years ago

It depends on your editor and colorscheme, list markers are correctly parsed at the moment like e.g. (list_marker_minus) or (list_marker_star). Query highlights are like this:

[
  (list_marker_plus)
  (list_marker_minus)
  (list_marker_star)
  (list_marker_dot)
  (list_marker_parenthesis)
  (thematic_break)
] @punctuation.special

It is then the job of your colorscheme to define highlight If you're on neovim you can use colorbuddy to easily define one

I suggest you to take a look at Treesitter website to understand how this work.

MDeiml commented 2 years ago

This is correct. I hope it answered your question? If not feel free to ask.