Skip to content

Separate ansible language #11818

Answered by the-mikedavis
nikaro asked this question in Q&A
Discussion options

You must be logged in to vote

You'll need to set up highlight queries for the new ansible language. In your runtime directory (HELIX_RUNTIME if set, ~/.config/helix/runtime otherwise) you'll need to create queries/ansible/highlights.scm queries/ansible/injections.scm files with the contents ; inherits: yaml. grammar = "yaml" in language configuration re-uses the tree-sitter parser and then you need to set up queries. starlark is a good example of a language reusing another language's parser and queries (python).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nikaro
Comment options

Answer selected by nikaro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants