Skip to content

Commit

Permalink
Fix CSS Selector pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Mar 30, 2024
1 parent 371413a commit 476a882
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Languages/Css/Patterns/CssSelectorPattern.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@
kbd, samp,
pre ',
)]
#[PatternTest(input: "[data-x='asd'] .light {", output: "[data-x='asd'] .light ")]
final readonly class CssSelectorPattern implements Pattern
{
use IsPattern;

public function getPattern(): string
{
return '(?<match>[\@\-\#\.\w\s,\n]+)\{';
return '(?<match>[\[\]\'\"\=\@\-\#\.\w\s,\n]+)\{';
}

public function getTokenType(): TokenTypeEnum
Expand Down

0 comments on commit 476a882

Please sign in to comment.