Releases: EmranMR/tree-sitter-blade
Releases · EmranMR/tree-sitter-blade
v0.3.1 Release Note
Bug Fix: 🐞
- Fixed the bug/conflict when parsing undeclared
@directives
so that the parser gracefully handle them rather than throwing an error #23 - This will be important in following scenarios:
- Email address entry
- Editor tree targeting for potential completion suggestion see EmranMR/Laravel-Nova-Extension#7
- The attribute directives relating to upcoming Livewire v3.0 such as
@click
v0.3.0 Release Notes
New Additions:
Support for Livewire directives 🪼
Livewire < v2.x
@livewireStyles
@livewireScripts
Livewire v2.x <=
@livewire()
inline component rendering
Upcoming Livewire v3.x
@livewireScriptConfig
@presist
@teleport
@volt
v0.2.0 Release-Note
New Feature
- The grammar now supports "folding".
- README.md has been updated to document the feature under "Folding"
- Added stubs in the
queries/folds.scm
to be used as an example
Rule Name Change
- There is a minor backward compatible change to allow full support for foldings
(bracket)
has been changed to(bracket_start)
and(bracket_end)
accordingly
Nova Users👇
- Added a link to Nova Extension Library
v0.1.1 Release-Notes
Bug 🐛 Fixes:
- The keywords are now correctly parsed as
$.directive
and can be captured for syntax highlighting
New Support:
@vite()
@viteReactRefresh
NeoVim Users 👇
I would highly recommend you to read the tips provided by @yaegassy in this discussion.
- I have added a link to the README.md as well for future reference.
v.0.1.0 Release Notes
⚠️ Breaking Changes:
This version has breaking updates, as there has been a rule name change:
(html)
rule name has been changed to(php)
- 🚧
(php)
has been changed to(php_only)
- Please note this is just in preparation for the upcoming split_parser
- You can not use this feature just yet.
- The⚠️ rule name (php_only) might change⚠️ when the feature is implemented intotree-sitter-php
- Please refer to theREADME.md
for more information
Upgrade Guide:
All you have to do is to change the injection.scm
to the following:
((php) @injection.content
(#set! injection.combined)
(#set! injection.language php))
Reason For This Update:
- Technically makes more sense to parse anything outwith the blade directives as
php
instead of thehtml
. This way you could utilise the correct parsing, allowingtree-sitter-php
to decide where to injecthtml
orphp_only
, meanwhile allowingtree-sitter-blade
to decide the blade relatedphp_only
injection sites instead. Basically a separation of concern. see issue #12
Other updates
- The
README.md
has been updated CONTRIBUTION.md
has been completedpackage.json
has been updated with relevantscripts
relevant for this repotest
files have been updated to reflect the change in the rule names
v0.0.7 Release Note
New features
- Completed all the tests in
/corpus
, covering the entireblade
grammar. 🎉- This makes contributing more accessible to everyone
- It also allowed me to catch some sneaky bugs in the parser
- custom directives: Now fully supported, you can have custom directives even with names starting with the letter "e"
Fixes & Enhancements
v0.0.1 Release Note
New Features
- Support for
@empty
directive as stand-alone insideloops
- Support for custom if-statements