-
Notifications
You must be signed in to change notification settings - Fork 32
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 Svelte support #59
Comments
This should probably eventually be moved into a Svelte extension. Because extensions are not quite ready, this can go into core for the time being. |
Is there an update on this? I'd really like to use codeedit for real and kinda need svelte support at the very least, happy to test any implementation and send feedback! |
Hey @mattpilott! I gave this a shot a while ago and had a compile time issue due to duplicated symbols in C header files between Tree Sitter Svelte and Tree Sitter HTML. Here are some details: #60 Here is the issue I reported back in the day: Himujjal/tree-sitter-svelte#43 |
@austincondiff how far off is something like this svelte support? Again be great to be able to use codeedit day to day and provide real feedback! |
I think we could have a fork on tree-sitter-svelte perhaps? Or stick for Svelte for both? HTML and Svelte? |
I'd leave this for now. Things like Svelte and Vue and React are more frameworks/libraries than languages. As such they rely way more on LSP etc. So we might want to fix that first |
I suggest we mark this issue in a way other users know it will be introduced after LSP. That way we focus attention on the actual priorities. What do you think? |
Yup, I agree. I'm reworking some of the labels and project boards, so I'll take this one with it |
Great thanks @matthijseikelenboom |
I do have the files .scm files for the Svelte LSP: Tags.scm: ;; Match the primary elements of a Svelte file ;; Match attributes in Svelte ;; Match Svelte directives (e.g., bind:, on:, class:, etc.) ;; Match text content inside elements ;; Match mustache syntax for bindings and expressions Highlights.scm: ;; Highlight the script, style, and template sections ;; Highlight attributes and values ;; Highlight Svelte directives ;; Highlight curly braces for mustache syntax ;; Highlight text inside HTML elements ;; Highlight JavaScript expressions inside <script> tags ;; Highlight CSS inside <style> tags ;; Highlight special Svelte elements ;; Highlight event handlers Locals.scm: ;; Definitions within <script> tags ;; Local usage within template expressions ;; Locals defined in each block context ;; Locals in reactive assignments ;; Bindings and props in Svelte attributes ;; Locals passed to slot props ;; Svelte-specific control flow elements |
Is blocked by LSP integration (No issue available yet)
Language Name
Svelte
Tree-Sitter Grammar
https://github.com/Himujjal/tree-sitter-svelte
I will work on this
Yes
Additional Info (optional)
No response
The text was updated successfully, but these errors were encountered: