-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Improve tsq/tree-sitter-query language support #12148
Conversation
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.
You can update the existing entry for this language instead:
Lines 1439 to 1449 in b1bdbc6
[[language]] | |
name = "tsq" | |
scope = "source.tsq" | |
file-types = ["tsq"] | |
comment-token = ";" | |
injection-regex = "tsq" | |
indent = { tab-width = 2, unit = " " } | |
[[grammar]] | |
name = "tsq" | |
source = { git = "https://github.com/the-mikedavis/tree-sitter-tsq", rev = "48b5e9f82ae0a4727201626f33a17f69f8e0ff86" } |
That language is set to recognize .tsq
files as a dummy value. (We didn't want the tree-sitter query language to be used over Scheme generally.) The file-types you have proposed here instead looks better though, there might still be some overlap with regular Scheme files but it seems unlikely.
I might be messing something up but it seems like I can't leave the name as tsq, it only works when I use the grammar name query. |
You may need to set |
Co-authored-by: Michael Davis <[email protected]>
Co-authored-by: Michael Davis <[email protected]>
Co-authored-by: Michael Davis <[email protected]>
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.
thanks!
The changes in #12148 were a bit radical - this restores some customizations we had like using "label" for captures and not highlighting the '#' or '?'/'!' parts differently. Also the highlighting for predicates we do (not) support has been restored.
The changes in helix-editor#12148 were a bit radical - this restores some customizations we had like using "label" for captures and not highlighting the '#' or '?'/'!' parts differently. Also the highlighting for predicates we do (not) support has been restored.
The changes in helix-editor#12148 were a bit radical - this restores some customizations we had like using "label" for captures and not highlighting the '#' or '?'/'!' parts differently. Also the highlighting for predicates we do (not) support has been restored.
The changes in helix-editor#12148 were a bit radical - this restores some customizations we had like using "label" for captures and not highlighting the '#' or '?'/'!' parts differently. Also the highlighting for predicates we do (not) support has been restored.
The changes in helix-editor#12148 were a bit radical - this restores some customizations we had like using "label" for captures and not highlighting the '#' or '?'/'!' parts differently. Also the highlighting for predicates we do (not) support has been restored.
The changes in helix-editor#12148 were a bit radical - this restores some customizations we had like using "label" for captures and not highlighting the '#' or '?'/'!' parts differently. Also the highlighting for predicates we do (not) support has been restored.
WIP adding support for tree-sitter query files (scheme-like), using https://github.com/tree-sitter-grammars/tree-sitter-query for the grammar and https://github.com/ribru17/ts_query_ls as the LSP.
Todo