tree-sitter / tree-sitter-julia

Julia grammar for Tree-sitter
MIT License
93 stars 31 forks source link

it's impossible to highlight `Symbol` literals differently from variables #110

Closed ExpandingMan closed 1 year ago

ExpandingMan commented 1 year ago

I've been a bit frustrated because, no matter what I do, my Symbol always has the color of variables. Apparently, this is because Symbol literals are ultimately marked as @variable, see my question here.

Personally I would be happy if Symbol literals were of the highlight group @symbol only (this already is the case for the preceeding :), but, at the very least, it seems that Symbol literals should have a more specific highlight group, as it seems that most users would want them to be a different color than variables.

savq commented 1 year ago

I opened a PR (in nvim-treesitter) to ensure @symbol is applied after @variable.

ExpandingMan commented 1 year ago

Great! Thanks for the fast response!