@@ -8,7 +8,6 @@ import refractorMarkup from 'refractor/lang/markup.js';
88import refractorPhp from 'refractor/lang/php.js' ;
99
1010blade . displayName = 'blade' ;
11- blade . aliases = [ 'blade_php' ] ;
1211
1312export 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 : / (?: \@ p h p [ \s \S ] * ?\@ e n d p h p | \< \? p h p [ \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 (?: @ i f | @ e l s e | @ e l s e i f | @ e n d i f | @ f o r e a c h | @ e n d f o r e a c h | @ f o r | @ e n d f o r | @ w h i l e | @ e n d w h i l e | @ u n l e s s | @ e n d u n l e s s | @ i s s e t | @ e n d i s s e t | @ e m p t y | @ e n d e m p t y | @ s w i t c h | @ c a s e | @ b r e a k | @ d e f a u l t | @ e n d s w i t c h | @ i n c l u d e | @ e x t e n d s | @ s e c t i o n | @ e n d s e c t i o n | @ y i e l d | @ s t a c k | @ p u s h | @ e n d p u s h | @ a u t h | @ g u e s t | @ e n d a u t h | @ e n d g u e s t ) \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