emacs-tree-sitter / elisp-tree-sitter

Emacs Lisp bindings for tree-sitter
https://emacs-tree-sitter.github.io
MIT License
816 stars 73 forks source link

Why are highlighting queries different from upstream's? #108

Closed jcs090218 closed 3 years ago

jcs090218 commented 3 years ago

https://github.com/ubolonton/emacs-tree-sitter/blob/67155b30f92fb1f0c9316db1ec52a12dc4b95810/langs/queries/css/highlights.scm#L37

Why the above line is different from the source?

See tree-sitter/tree-sitter-css/queries/highlights.scm#L32

ubolonton commented 3 years ago

From the related issue #42:

Most of the queries in official language repositories are pretty bare-bone, and may not fit well with existing Emacs's conventions. It's my intention for tree-sitter-langs to maintain its own version of the highlighting queries. (Later on, that will be job of major modes that use tree-sitter).

jcs090218 commented 3 years ago

Thanks for the explanation!