File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/Languages/Blade/Patterns Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 99use Tempest \Highlight \PatternTest ;
1010use Tempest \Highlight \Tokens \TokenTypeEnum ;
1111
12+ #[PatternTest(input: '</a> ' , output: 'a ' )]
1213#[PatternTest(input: '</x-hello> ' , output: 'x-hello ' )]
1314#[PatternTest(input: '</x-hello::world> ' , output: 'x-hello::world ' )]
14- #[PatternTest(input: '</a > ' , output: 'a ' )]
15+ #[PatternTest(input: '</x-hello::world.lorem > ' , output: 'x-hello::world.lorem ' )]
1516final readonly class BladeComponentCloseTagPattern implements Pattern
1617{
1718 use IsPattern;
1819
1920 public function getPattern (): string
2021 {
21- return '<\/(?<match>[\w\-\:]+) ' ;
22+ return '<\/(?<match>[\w\-\:\. ]+) ' ;
2223 }
2324
2425 public function getTokenType (): TokenTypeEnum
Original file line number Diff line number Diff line change 99use Tempest \Highlight \PatternTest ;
1010use Tempest \Highlight \Tokens \TokenTypeEnum ;
1111
12+ #[PatternTest(input: '<a attr=""> ' , output: 'a ' )]
1213#[PatternTest(input: '<x-hello attr=""> ' , output: 'x-hello ' )]
1314#[PatternTest(input: '<x-hello::world attr=""> ' , output: 'x-hello::world ' )]
14- #[PatternTest(input: '<a attr=""> ' , output: 'a ' )]
15+ #[PatternTest(input: '<x-hello::world.lorem attr=""> ' , output: 'x-hello::world.lorem ' )]
1516final readonly class BladeComponentOpenTagPattern implements Pattern
1617{
1718 use IsPattern;
1819
1920 public function getPattern (): string
2021 {
21- return '<(?<match>[\w\-\:]+) ' ;
22+ return '<(?<match>[\w\-\:\. ]+) ' ;
2223 }
2324
2425 public function getTokenType (): TokenTypeEnum
You can’t perform that action at this time.
0 commit comments