Skip to content

Add Laravel Blade language support#1353

Merged
XAMPPRocky merged 1 commit into
XAMPPRocky:masterfrom
benfaerber:add-blade-support
May 6, 2026
Merged

Add Laravel Blade language support#1353
XAMPPRocky merged 1 commit into
XAMPPRocky:masterfrom
benfaerber:add-blade-support

Conversation

@benfaerber

Copy link
Copy Markdown
Contributor

Laravel Blade: https://laravel.com/docs/12.x/blade

  • Detect Blade by .blade extension and .blade.php compound suffix
  • Generic path_suffixes field for any future compound-extension language; matched in from_path before extension lookup so .blade.php wins over PHP
  • Recognise Blade ({{-- --}}) and HTML () multi-line comments
  • Sanitise auto-generated test idents so blade.blade.php produces a valid Rust function name
  • Add blade.blade.php fixture covering both comment styles

- Detect Blade by .blade extension and .blade.php compound suffix
- Generic path_suffixes field for any future compound-extension language;
  matched in from_path before extension lookup so .blade.php wins over PHP
- Recognise Blade ({{-- --}}) and HTML (<!-- -->) multi-line comments
- Sanitise auto-generated test idents so blade.blade.php produces a
  valid Rust function name
- Add blade.blade.php fixture covering both comment styles
@XAMPPRocky

Copy link
Copy Markdown
Owner

Thank you for your PR, and congrats on your first contribution! 🎉

@XAMPPRocky XAMPPRocky merged commit fa44e51 into XAMPPRocky:master May 6, 2026
71 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants