EmranMR/tree-sitter-blade
关于
tree-sitter grammar for Laravel blade files
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Tree-Sitter-Blade 🌳
⚠️v0.12.0 Upgrade Guide ✨
- The grammar has been pretty much rewritten from the ground up.
tree-sitter-blade now inherits
htmland takes control of thehtmltree structure as well - The grammar is way more semantic, leaner and much faster, like lightening fast (10x) thanks to the drastically improved performance
- Please read the
v0.12.0Release Note for the Upgrade Guide, if you have any questions, feel free to start a discussion or raise an issue
Introduction (feel free to skip)
This project aims to write the tree-sitter grammar for Laravel Blade.
This grammar can be used in any editor or service that support Tree-Sitter. Such as, but not limited to:
- Neovim
- Zed
- Nova

Common Editors Set Up 💻
Nova
Simply install the Laravel Suite Extension from the Extension Library. That includes:
- Language Injections
- Autocompletion
- Folding
- Syntax Highlighting
- Auto Indentation
eoVim
Simply use the nvim-treesitter plugin and install the blade grammar.
Zed
Simply download the extension from zed Extension marketplace
Queries
[!NOTE] Your editor or service might use a different capture group name or predicates than the queries in the
queries/folder. Consequently, you will need to find out how to approach queries or where they are stored and used in your editor's documentation. For example Nova does not use anything in this folder and uses its ownQueriesfolder instead.
Here's an example of all the various languages that are injected:

And here's an example of folding in action:

Issues
If something does not look right please raise an issue with a detailed examples of what you are trying to achieve. Add any of the following if necessary:
- Code Excerpts (allows me to test)
- Photo of the issue
- Parse Tree (if inspectable by your editor)
If you need help with anything else or would like to share tips and tricks for your fellow devs, feel free to use the discussion tab and create a discussion!
👥 Contributing
See the contribution guidelines for more details, as well as
in depth info about the grammar itself.
Anyone said coffee? ☕
探索相关项目
加载中…