Releases: EmranMR/tree-sitter-blade
v0.11.0 Release Notes
v0.10.0 Release Notes
v0.9.2
v0.9.2 Release Notes ✨
Enhancement to The comment
Node 🧹:
- Thanks to the contribution #45 by @calebdw , the
comment
node definition has been improved, it is now more semantic. - If you are updating from
<v0.9.0
, make sure you change yourinjections.scm
content:
((text) @injection.content
(#not-has-ancestor? @injection.content "envoy")
(#set! injection.combined)
(#set! injection.language php))
; could be bash or zsh
; or whatever tree-sitter grammar you have.
((text) @injection.content
(#has-ancestor? @injection.content "envoy")
(#set! injection.combined)
(#set! injection.language bash))
; 🚧 Available for experimental split_parser see issue #5
;((php_only) @injection.content
; (#set! injection.language php_only))
;((parameter) @injection.content
; (#set! injection.language php_only))
v0.9.1 Release Note
v0.9.1 Release Notes ✨
If you have not done so, follow the upgrade guide outlined for v0.9.0
- I have adjusted the stubs there to take into account for the bug fix with this version
Bug Fixes 🐞:
1. Comment Bug #42
After the refactor, there was an issue, when parsingcomments
, that has been fixed so that it is no longer parsed ashtml
.README and stubs were adjusted to reflect the change.- Please use v0.9.2 better solution was implemented #45 😊
2. Experimental php_only
bug #41:
- This is mainly for Nova and of course upcoming new
tree-sitter-php
- Adjusted the stubs so you do not get oddities with the php parsing
v0.9.0 Release Note & Upgrade Guide
v0.9.0 Release Notes ✨
Laravel Envoy
This update brings full support for Laravel Envoy
New Directives:
Envoy Cores:
@servers
@import
@task
@story
@setup
Hooks
@before
@after
@error
@success
@finished
Notifications
@slack
@discord
@telegram
@microsoftTeams
Shell
injection! 😧🎉
Perhaps the most exciting part of the update is the ability for the parser to correctly recognise and parse shell
!! 🤯
Correct me if I am wrong, but I do not think there is any none-tree-sitter editor or parser out there, that can even remotely achieve this.
Blade is intrinsically a very complex file, having php
, html
, shell
, javascript
, css
... The list goes on, with lots of overlap. That is the main reason that no parser managed to nail it. Below is just a tiny example of how complex it can get in the same example.blade.php
!
As you can see the v0.9.0
correctly picks up everything!
Enhancements 🧹
- closed #39
- This should give you a much cleaner AST when parsing your
blade
files - Especially when parsing complicated
texts
orphp_only texts
Before
After
Upgrade Guide
There has been some major structural refactor to make the grammar future proof, semantic and flexible as it grows with Laravel. As a result there has been a breaking change. I can not promise you to be the last one, but there should be no breakage for a good while!
To Upgrade:
- Download the parser
v0.9.2^
and hook it up to your editor - just change your
injections.scm
to the following - You are good to go! ✅
Please note, as mentioned in the README, the php_only is experimental until merged to
tree-sitter-php
.
((text) @injection.content
(#not-has-ancestor? @injection.content "envoy")
(#set! injection.combined)
(#set! injection.language php))
; could be bash or zsh
; or whatever tree-sitter grammar you have.
((text) @injection.content
(#has-ancestor? @injection.content "envoy")
(#set! injection.combined)
(#set! injection.language bash))
; 🚧 Available for experimental split_parser see issue #5
;((php_only) @injection.content
; (#set! injection.language php_only))
;((parameter) @injection.content
; (#set! injection.language php_only))
v0.7.0 Release Notes
New Addition ✨:
- Full support for Template Inheritance , useful for legacy projects
- closes #35 and #10 ✅
- inline
@section
exclusive parsing support - nested
@section
support with either@show
or@endsection
@aware
@parent
v0.6.0 Release Notes
V0.4.0 Release Notes
New Addition:
- Support for Authorization:
@can
@canany
@cannot
v0.3.3 Release Notes
🐞 Bug Fix:
Fixes #27 and Laravel Suite#11
⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎⬇︎
v0.3.2 Release Notes
Bug Fix: 🐞
- Fixed the bug, that resulted in breakage when the comments ended with punctuations #24
- Added new tests for future development