Skip to content

EmranMR/Laravel-Nova-Extension

Repository files navigation

alt text Laravel Suite


Important Prerequisites

⚠️ Needless to say, if you have the Blade Extension installed, you need to uninstall or disable. Otherwise this extension won't work as expected

Sponsorship ❤️

If this project & tree-sitter-blade put a delightful smile on your face, don't forget to star ⭐ both projects or maybe sponsor... 👀

Buy Me A Coffee

Introduction

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+

Features

1. Integration with tree-sitter-blade

  • It is up to date as of 12.x

2. Syntax highlighting and autocompletion support for all blade directives

3. php injection support

  • Unlike traditional textmate based parsers, you will now get php injections at all the right spots required. (no more string highlighting as parameter or in blade attributes!) 🤘

php injection

4. Context aware autocompletion

  • 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

    completion

5. Support for indentation increase/decrease after pressing return key

6. Folding Support

folding

7. Shell injection / Laravel Envoy

  • You now get completion for Laravel envoy directives
  • On top of that, the content of the tasks are correctly parsed as shell! 🤯

php injection

8. Commenting

  • Since the v2.0.0 thanks to tree-sitter-blade v0.12.0 you can now use your global commenting shortcut to comment out in blade comments, and not in html syntax!

9. Javascript injection for AlpineJS and Livewire

  • From v2.0.0 you will now get syntax highlighting and javascript injection for AlpineJS and Livewire attributes!

Staying up-to-date?

Just star ⭐ or watch 👀 Laravel Suite and tree-sitter-blade

Issues:

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

Laravel Suite alt text

Anything else please raise an issue on Laravel Suite repo

Disclaimer

This project is not approved, sponsored, or affiliated with Laravel, Laravel or its related projects

About

Tree-sitter based Laravel + blade support for Nova Editor by Panic

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published