Skip to content

Add support for tree-sitter-svelte #1194

@zakkor

Description

@zakkor

As I understand it, the work that needs to be done to achieve this is that we need to define a tree-sitter-svelte-tags.scm file, similar to these: https://github.com/paul-gauthier/aider/tree/main/aider/queries

Unfortunately, Svelte is a multi-language language, where you might have JavaScript inside <script> tags, TypeScript inside <script lang="ts"> tags, CSS/PostCSS in <style> tags, and HTML mixed with Svelte constructs at the top-level (all other tags).

I don't see an example of a .scm file with multiple embedded languages in the queries directory that we can use as inspiration, so this might be a bit more difficult.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions