-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for local queries #107
Conversation
(defface tree-sitter-hl-face:local.reference | ||
'((default :inherit font-lock-variable-name-face)) | ||
"Face for new local reference." | ||
:group 'tree-sitter-hl-faces) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are listed here.
(message "Copying queries for %s" lang-symbol) | ||
(when (and force (file-directory-p dst-dir)) | ||
(delete-directory dst-dir t)) | ||
(copy-directory src dst-dir nil t t))))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Local query seems located in locals.scm
and not highlight.scm
.
Do you think we can just pull the entire query files down?
(dolist (query quries) | ||
(insert-file-contents query) | ||
(goto-char (point-max)) | ||
(insert "\n")))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Load all quires at a time.
IIRC, local queries are used by upstream in a separate query pass, which then provides data for Did you get a working behavior instead? |
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? |
I just added some notes to #94. |
Feature for #94.