Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Mar 15, 2024
1 parent 889c3fd commit 0e645fb
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/Languages/BladeLanguage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,27 @@

namespace Tempest\Highlight\Languages;

use Tempest\Highlight\Languages\Blade\Injections\BladeKeywordInjection;
use Tempest\Highlight\Languages\Blade\Injections\BladePhpInjection;
use Tempest\Highlight\Languages\Blade\Patterns\BladeKeywordPattern;
use Tempest\Highlight\Languages\Html\HtmlLanguage;

class BladeLanguage extends HtmlLanguage
{
public function getPatterns(): array
public function getInjections(): array
{
return parent::getPatterns() + [
return [
...parent::getInjections(),
new BladePhpInjection(),
new BladeKeywordInjection(),
];
}

];
public function getPatterns(): array
{
return [
...parent::getPatterns(),
new BladeKeywordPattern(),
];
}
}

0 comments on commit 0e645fb

Please sign in to comment.