⚠️ Needless to say, if you have the Blade Extension installed, you need to uninstall or disable. Otherwise this extension won't work as expected
If this project & tree-sitter-blade put a delightful smile on your face, don't forget to star ⭐ both projects or maybe sponsor... 👀
This extension provides Laravel blade file parsing based on a
tree-sitter-blade🌳
tree-sitter-blade which was
created with this extension in mind.
Hoping for this extension to be an all in one for Laravel projects in
Nova, now that the tree-sitter-blade project has reached a very stable stages
0.12.0+
1. Integration with tree-sitter-blade
- It is up to date as of 12.x
- including the custom if statements and related projects such as the much Livewire v3.0.
- Unlike traditional textmate based parsers, you will now get
phpinjections at all the right spots required. (no morestringhighlighting as parameter or in blade attributes!) 🤘
-
You get the correct autocompletion, exactly based on the location of your cursor in the document
-
For example you do not get blade attribute autocompletion, if the cursor is not located in the attribute syntax tree
- You now get completion for Laravel envoy directives
- On top of that, the content of the tasks are correctly parsed as
shell! 🤯
- Since the
v2.0.0thanks totree-sitter-blade v0.12.0you can now use your global commenting shortcut to comment out in blade comments, and not inhtmlsyntax!
- From
v2.0.0you will now get syntax highlighting and javascript injection for AlpineJS and Livewire attributes!
Just star ⭐ or watch 👀 Laravel Suite and tree-sitter-blade
If you see any problem with parsing, very likely it is related to the
tree-sitter-blade. So please
raise an issue on that repo
Anything else please raise an issue on Laravel Suite repo
This project is not approved, sponsored, or affiliated with Laravel, Laravel or its related projects



