Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -2477,7 +2477,7 @@ protected function keyword(&$word, $eatWhitespace = null)
{
if ($this->match(
$this->utf8
? '(([\pL\w_\-\*!"\']|[\\\\].)([\pL\w\-_"\']|[\\\\].)*)'
? '(([\pL\w\x{00A0}-\x{10FFFF}_\-\*!"\']|[\\\\].)([\pL\w\x{00A0}-\x{10FFFF}\-_"\']|[\\\\].)*)'
: '(([\w_\-\*!"\']|[\\\\].)([\w\-_"\']|[\\\\].)*)',
$m,
$eatWhitespace
Expand Down
10 changes: 10 additions & 0 deletions tests/inputs/selectors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -287,3 +287,13 @@ ul, ol {
display: block;
}
}

// unicode
.👤 {
display: inline-block;
}

.❮ {
display:inline;
content:'↦';
}
7 changes: 7 additions & 0 deletions tests/outputs/selectors.css
Original file line number Diff line number Diff line change
Expand Up @@ -370,3 +370,10 @@ span a, p a, div a {

ul ul, ul ol, ol ul, ol ol {
display: block; }

.👤 {
display: inline-block; }

.❮ {
display: inline;
content: '↦'; }
7 changes: 7 additions & 0 deletions tests/outputs_numbered/selectors.css
Original file line number Diff line number Diff line change
Expand Up @@ -407,3 +407,10 @@ span a, p a, div a {

ul ul, ul ol, ol ul, ol ol {
display: block; }
/* line 292, inputs/selectors.scss */
.👤 {
display: inline-block; }
/* line 296, inputs/selectors.scss */
.❮ {
display: inline;
content: '↦'; }