File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -790,6 +790,10 @@ namespace Sass {
790
790
zero);
791
791
break ;
792
792
case Textual::HEX: {
793
+ if (t->value ().substr (0 , 1 ) != " #" ) {
794
+ result = new (ctx.mem ) String_Constant (t->pstate (), t->value ());
795
+ break ;
796
+ }
793
797
string hext (t->value ().substr (1 )); // chop off the '#'
794
798
if (hext.length () == 6 ) {
795
799
string r (hext.substr (0 ,2 ));
Original file line number Diff line number Diff line change @@ -582,6 +582,8 @@ namespace Sass {
582
582
hexlet << hex << setw (2 ) << static_cast <unsigned long >(b);
583
583
}
584
584
585
+ if (want_short && !c->is_delayed ()) name = " " ;
586
+
585
587
// retain the originally specified color definition if unchanged
586
588
if (name != " " ) {
587
589
ss << name;
Original file line number Diff line number Diff line change @@ -1003,6 +1003,7 @@ namespace Sass {
1003
1003
}
1004
1004
else if (lex< sequence< optional< exactly<' *' > >, identifier > >()) {
1005
1005
prop = new (ctx.mem ) String_Quoted (pstate, lexed);
1006
+ prop->is_delayed (true );
1006
1007
}
1007
1008
else {
1008
1009
error (" invalid property name" , pstate);
@@ -1487,7 +1488,7 @@ namespace Sass {
1487
1488
--position;
1488
1489
1489
1490
String_Constant* str_node = new (ctx.mem ) String_Constant (pstate, str.time_wspace ());
1490
- // str_node->is_delayed(true);
1491
+ str_node->is_delayed (true );
1491
1492
return str_node;
1492
1493
}
1493
1494
You can’t perform that action at this time.
0 commit comments