emacs-tree-sitter / tree-sitter-langs

Language bundle for Emacs's tree-sitter package
https://emacs-tree-sitter.github.io/languages/
MIT License
260 stars 130 forks source link

fix: R: Conform to Emacs highlighting conventions #759

Closed KaiAragaki closed 2 weeks ago

KaiAragaki commented 2 weeks ago

As per Emacs' highlighting conventions (here), special faces should have higher priority than more general ones. This lowers the priority of the more general variable face. Additionally, it only highlights variable when assigned (with <- or =), and not otherwise.

jcs090218 commented 2 weeks ago

Thank you!