-
-
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
Add c3 language support to helix #11521
base: master
Are you sure you want to change the base?
Conversation
runtime/queries/c3/highlights.scm
Outdated
(integer_literal) @number | ||
(real_literal) @number.float | ||
(char_literal) @character | ||
(bytes_literal) @number |
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.
Some of the scopes in this file need fixing https://docs.helix-editor.com/themes.html#syntax-highlighting
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.
Is there a good way to debug these scopes ?
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 use the :tree-sitter-highlight-name
command to show the capture name under the cursor
Looking forward to the C3 support! |
Implementation of indent and textobjects querry for c3.
I hope it will be added in the next release. |
block-comment-tokens = { start = "/*", end = "*/" } | ||
indent = { tab-width = 4, unit=" "} | ||
language-servers = [ "c3-lsp" ] | ||
grammar = "c3" |
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.
grammar = "c3" |
This key can be omitted since by default it matches the name of the language
@@ -417,6 +418,21 @@ grammar = "janet-simple" | |||
name = "janet-simple" | |||
source = { git = "https://github.com/sogaiu/tree-sitter-janet-simple", rev = "51271e260346878e1a1aa6c506ce6a797b7c25e2" } | |||
|
|||
[[grammar]] | |||
name = "c3" | |||
source = { git = "https://github.com/c3lang/tree-sitter-c3" , rev = "790a0326833cd647e00d8dec01268aa1ec2e3bdb" } |
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.
Should update to the latest commit:
c6b1bae4d575f91e5c6c3c4af93bbec4e543ac5e
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.
Using this commit breaks the currently commited runtime queries
Needs some updating. c3-treesitter repo commit hash is outdated and highlights.scm could also be checked that its up-to-date. |
No description provided.