Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Mar 19, 2024
2 parents 484dcf2 + 077e6a7 commit a85638f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Tokens/GroupTokens.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tempest\Highlight\Tokens;

final readonly class GroupTokens
Expand Down Expand Up @@ -41,4 +43,4 @@ public function __invoke(array $tokens): array

return $groupedTokens;
}
}
}
2 changes: 1 addition & 1 deletion tests/Languages/Php/PhpLanguageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static function data(): array
["public const string|\Stringable MESSAGE = 'hi';", '<span class="hl-keyword">public</span> <span class="hl-keyword">const</span> <span class="hl-type">string|\Stringable</span> <span class="hl-property">MESSAGE</span> = \'<span class="hl-value">hi</span>\';'],
["public string|\Stringable \$message;", '<span class="hl-keyword">public</span> <span class="hl-type">string|\<span class="hl-type">Stringable</span></span> <span class="hl-property">$message</span>;'],
['for($x = 0; $x < 150; $x++) {', '<span class="hl-keyword">f<span class="hl-keyword">or</span></span>($x = 0; $x &lt; 150; $x++) {'],
["'namespace ';", "'<span class=\"hl-value\">namespace </span>';"]
["'namespace ';", "'<span class=\"hl-value\">namespace </span>';"],
];
}
}

0 comments on commit a85638f

Please sign in to comment.