Skip to content

Commit a385049

Browse files
committed
remove blade_php
1 parent acf3ba4 commit a385049

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/lib/syntaxHighlighting/blade.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import refractorMarkup from 'refractor/lang/markup.js';
88
import refractorPhp from 'refractor/lang/php.js';
99

1010
blade.displayName = 'blade';
11-
blade.aliases = ['blade_php'];
1211

1312
export default function blade(Prism) {
1413
Prism.register(refractorMarkup);
@@ -18,7 +17,6 @@ export default function blade(Prism) {
1817
Prism.languages.blade = {
1918
comment: /{{--([\s\S]*?)--}}/,
2019

21-
// Blade directives
2220
directive: {
2321
pattern: /@\w+(?:::\w+)?(?:\s*\([\s\S]*?\))?/,
2422
inside: {
@@ -28,7 +26,6 @@ export default function blade(Prism) {
2826
},
2927
},
3028

31-
// Echo statements
3229
echo: {
3330
pattern: /\{{2,3}[\s\S]*?\}{2,3}/,
3431
inside: {
@@ -40,7 +37,6 @@ export default function blade(Prism) {
4037
},
4138
},
4239

43-
// Raw PHP
4440
php: {
4541
pattern: /(?:\@php[\s\S]*?\@endphp|\<\?php[\s\S]*?\?\>)/,
4642
inside: {
@@ -55,27 +51,19 @@ export default function blade(Prism) {
5551
},
5652
},
5753

58-
// HTML markup
5954
markup: {
6055
pattern: /<[^?]\/?(.*?)>/,
6156
inside: Prism.languages.markup,
6257
},
6358

64-
// Keywords for common Blade directives
6559
keyword:
6660
/\b(?:@if|@else|@elseif|@endif|@foreach|@endforeach|@for|@endfor|@while|@endwhile|@unless|@endunless|@isset|@endisset|@empty|@endempty|@switch|@case|@break|@default|@endswitch|@include|@extends|@section|@endsection|@yield|@stack|@push|@endpush|@auth|@guest|@endauth|@endguest)\b/,
6761

68-
// Blade variables
6962
variable: /\$\w+/,
7063

71-
// Operators
7264
operator: /=>|->|\|\||&&|!=|==|<=|>=|[+\-*\/%<>]=?|\?:/,
7365

74-
// Punctuation
7566
punctuation: /[\[\](){}:;,]/,
7667
};
77-
78-
// Add alias for Blade files
79-
Prism.languages.blade_php = Prism.languages.blade;
8068
})(Prism);
8169
}

0 commit comments

Comments
 (0)