Skip to content

Yaml grammar not applied to derivative language #9530

Discussion options

You must be logged in to vote

You can re-use the tree-sitter parser with grammar = "<existing grammar>" but you also need to define queries for the new language under runtime/queries/docker-compose/. You can re-use the queries from yaml by using ; inherits: yaml. For example see racket's queries https://github.com/helix-editor/helix/blob/master/runtime/queries/racket/highlights.scm

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Ultra-Code
Comment options

Answer selected by Ultra-Code
Comment options

You must be logged in to vote
2 replies
@AlexNomadrg
Comment options

@AlexNomadrg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #9520 on February 04, 2024 15:33.