EmranMR / tree-sitter-blade

tree-sitter grammar for Laravel blade files
MIT License
186 stars 8 forks source link

[QUESTION] Support for Livewire Volt Components #64

Closed greg-grigorjevs closed 2 weeks ago

greg-grigorjevs commented 5 months ago

Hi, I am using livewire Volt class based components.

Here's how the highlighting looks like when the filetype is set to blade:

Screenshot 2024-04-07 at 12 46 50

And here how it looks like when the filetype is set to php:

Screenshot 2024-04-07 at 12 47 25

I would like to know if there is a way to extend the blade/injections.scm file in a way so that:

Thank you

EmranMR commented 5 months ago

Hi, can I have the code excerpt?

The injection and highlighting are all taken care of by tree-sitter-php and tree-sitter-php_only. So technically the syntax highlighting should be the same.

Unless of course there are parsing error by tree-sitter-blade which I can have a look.

EmranMR commented 2 weeks ago

I'll close this issue for now as it appears to be stale. However, please feel free to reopen it if the problem persists.