Skip to content
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 tree-sitter queries for vlang #6279

Merged
merged 1 commit into from Mar 15, 2023

Conversation

erasin
Copy link
Contributor

@erasin erasin commented Mar 12, 2023

  • Update highlight
  • add indents
  • add textobject
  • add injections

Issues #6164 and #6267.

vlang and verilog has file type conflicts in languages configurations.

- Update hightlight
- add indents
- add textobject
- add injections
@the-mikedavis the-mikedavis added C-enhancement Category: Improvements S-waiting-on-review Status: Awaiting review from a maintainer. A-language-support Area: Support for programming/text languages labels Mar 12, 2023
@the-mikedavis the-mikedavis self-requested a review March 12, 2023 16:49
@the-mikedavis the-mikedavis linked an issue Mar 12, 2023 that may be closed by this pull request
@the-mikedavis
Copy link
Member

#3249 has an approach for improving language conflicts that might help with vlang/verilog

@erasin
Copy link
Contributor Author

erasin commented Mar 13, 2023

It looks like this entry beats regular html for .html files. We have another conflict like this between verilog and V and I think the only way around it for now is to have one of them where you have to override it in a .helix/languages.toml or ~/.config/helix/languages.toml:

Do you mean this way, I'm already using it with html/twig,#6164.

In fact, the solution I want for conflict resolution is vscode's files.associations.

@the-mikedavis the-mikedavis changed the title Add ts queries for vlang Improve tree-sitter queries for vlang Mar 15, 2023
@the-mikedavis the-mikedavis merged commit fb56a4b into helix-editor:master Mar 15, 2023
6 checks passed
@the-mikedavis
Copy link
Member

#3249 would help even when the file-types are the same for both languages. What you recommend in #6164 looks like a good workaround for now

sagnibak pushed a commit to sagnibak/helix that referenced this pull request Mar 21, 2023
- Update hightlight
- add indents
- add textobject
- add injections
icecreammatt pushed a commit to icecreammatt/helix that referenced this pull request Apr 19, 2023
- Update hightlight
- add indents
- add textobject
- add injections
wes-adams pushed a commit to wes-adams/helix that referenced this pull request Jul 4, 2023
- Update hightlight
- add indents
- add textobject
- add injections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages C-enhancement Category: Improvements S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Vlang in the languages.toml
2 participants