@@ -1423,9 +1423,12 @@ namespace Sass {
1423
1423
{ return new (ctx.mem ) Textual (pstate, Textual::PERCENTAGE, lexed); }
1424
1424
1425
1425
// match hex number first because 0x000 looks like a number followed by an indentifier
1426
- if (lex< alternatives< hex, hex0 > >())
1426
+ if (lex< sequence < alternatives< hex, hex0 >, negate < exactly< ' - ' > > > >())
1427
1427
{ return new (ctx.mem ) Textual (pstate, Textual::HEX, lexed); }
1428
1428
1429
+ if (lex< sequence < exactly <' #' >, identifier > >())
1430
+ { return new (ctx.mem ) String_Quoted (pstate, lexed); }
1431
+
1429
1432
// also handle the 10em- foo special case
1430
1433
if (lex< sequence< dimension, optional< sequence< exactly<' -' >, negate< digit > > > > >())
1431
1434
{ return new (ctx.mem ) Textual (pstate, Textual::DIMENSION, lexed); }
@@ -1641,9 +1644,12 @@ namespace Sass {
1641
1644
(*schema) << new (ctx.mem ) Textual (pstate, Textual::NUMBER, lexed);
1642
1645
}
1643
1646
// lex hex color value
1644
- else if (lex< hex >()) {
1647
+ else if (lex< sequence < hex, negate < exactly < ' - ' > > > >()) {
1645
1648
(*schema) << new (ctx.mem ) Textual (pstate, Textual::HEX, lexed);
1646
1649
}
1650
+ else if (lex< sequence < exactly <' #' >, identifier > >()) {
1651
+ (*schema) << new (ctx.mem ) String_Quoted (pstate, lexed);
1652
+ }
1647
1653
// lex a value in parentheses
1648
1654
else if (peek< parenthese_scope >()) {
1649
1655
(*schema) << parse_factor ();
0 commit comments