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

Support for local queries #107

Closed jcs090218 closed 3 years ago

jcs090218 commented 3 years ago

Feature for #94.

ubolonton commented 3 years ago

IIRC, local queries are used by upstream in a separate query pass, which then provides data for .is-local? predicates in highlighting queries. Concatenating them wouldn't work.

Did you get a working behavior instead?

jcs090218 commented 3 years ago

Okay, sorry about this PR. I thought it would work in the first place. Although the highlighting did work but every thing seems to be highlighted as local variable too which is an unexpected behaviour. 😢

I would like to implement this feature. Do you know where I should start?

ubolonton commented 3 years ago

I would like to implement this feature. Do you know where I should start?

I just added some notes to #94.