@@ -591,7 +591,7 @@ namespace Sass {
591
591
// try to parse mutliple interpolants
592
592
if (const char * p = find_first_in_interval< exactly<hash_lbrace> >(i, end_of_selector)) {
593
593
// accumulate the preceding segment if the position has advanced
594
- if (i < p) (*schema) << new (ctx.mem ) String_Quoted (pstate, string (i, p));
594
+ if (i < p) (*schema) << new (ctx.mem ) String_Constant (pstate, string (i, p));
595
595
// check if the interpolation only contains white-space (error out)
596
596
if (peek < sequence < optional_spaces, exactly<rbrace> > >(p+2 )) { position = p+2 ;
597
597
css_error (" Invalid CSS" , " after " , " : expected expression (e.g. 1px, bold), was " );
@@ -611,7 +611,7 @@ namespace Sass {
611
611
// add the last segment if there is one
612
612
else {
613
613
// make sure to add the last bits of the string up to the end (if any)
614
- if (i < end_of_selector) (*schema) << new (ctx.mem ) String_Quoted (pstate, string (i, end_of_selector));
614
+ if (i < end_of_selector) (*schema) << new (ctx.mem ) String_Constant (pstate, string (i, end_of_selector));
615
615
// exit loop
616
616
i = end_of_selector;
617
617
}
@@ -740,7 +740,7 @@ namespace Sass {
740
740
// comments are allowed, but not spaces?
741
741
combinator = Complex_Selector::REFERENCE;
742
742
if (!lex < re_reference_combinator >()) return 0 ;
743
- reference = new (ctx.mem ) String_Quoted (pstate, lexed);
743
+ reference = new (ctx.mem ) String_Constant (pstate, lexed);
744
744
if (!lex < exactly < ' /' > >()) return 0 ; // ToDo: error msg?
745
745
}
746
746
else /* if (lex< zero >()) */ combinator = Complex_Selector::ANCESTOR_OF;
@@ -958,7 +958,7 @@ namespace Sass {
958
958
959
959
String* value = 0 ;
960
960
if (lex_css< identifier >()) {
961
- value = new (ctx.mem ) String_Quoted (p, lexed);
961
+ value = new (ctx.mem ) String_Constant (p, lexed);
962
962
}
963
963
else if (lex_css< quoted_string >()) {
964
964
value = parse_interpolated_chunk (lexed, true ); // needed!
@@ -988,7 +988,7 @@ namespace Sass {
988
988
prop = parse_identifier_schema ();
989
989
}
990
990
else if (lex< sequence< optional< exactly<' *' > >, identifier > >()) {
991
- prop = new (ctx.mem ) String_Quoted (pstate, lexed);
991
+ prop = new (ctx.mem ) String_Constant (pstate, lexed);
992
992
prop->is_delayed (true );
993
993
}
994
994
else {
@@ -1394,7 +1394,7 @@ namespace Sass {
1394
1394
return new (ctx.mem ) Parent_Selector (pstate); }
1395
1395
1396
1396
if (lex< kwd_important >())
1397
- { return new (ctx.mem ) String_Quoted (pstate, " !important" ); }
1397
+ { return new (ctx.mem ) String_Constant (pstate, " !important" ); }
1398
1398
1399
1399
if (const char * stop = peek< value_schema >())
1400
1400
{ return parse_value_schema (stop); }
@@ -1428,7 +1428,7 @@ namespace Sass {
1428
1428
{ return new (ctx.mem ) Textual (pstate, Textual::DIMENSION, lexed); }
1429
1429
1430
1430
if (lex< sequence< static_component, one_plus< identifier > > >())
1431
- { return new (ctx.mem ) String_Quoted (pstate, lexed); }
1431
+ { return new (ctx.mem ) String_Constant (pstate, lexed); }
1432
1432
1433
1433
if (lex< number >())
1434
1434
{ return new (ctx.mem ) Textual (pstate, Textual::NUMBER, lexed); }
@@ -1438,7 +1438,7 @@ namespace Sass {
1438
1438
1439
1439
// Special case handling for `%` proceeding an interpolant.
1440
1440
if (lex< sequence< exactly<' %' >, optional< percentage > > >())
1441
- { return new (ctx.mem ) String_Quoted (pstate, lexed); }
1441
+ { return new (ctx.mem ) String_Constant (pstate, lexed); }
1442
1442
1443
1443
error (" error reading values after " + lexed.to_string (), pstate);
1444
1444
@@ -1466,7 +1466,7 @@ namespace Sass {
1466
1466
if (p) {
1467
1467
if (i < p) {
1468
1468
// accumulate the preceding segment if it's nonempty
1469
- (*schema) << new (ctx.mem ) String_Quoted (pstate, string (i, p));
1469
+ (*schema) << new (ctx.mem ) String_Constant (pstate, string (i, p));
1470
1470
}
1471
1471
// we need to skip anything inside strings
1472
1472
// create a new target in parser/prelexer
@@ -1488,7 +1488,7 @@ namespace Sass {
1488
1488
}
1489
1489
else { // no interpolants left; add the last segment if nonempty
1490
1490
// check if we need quotes here (was not sure after merge)
1491
- if (i < chunk.end ) (*schema) << new (ctx.mem ) String_Quoted (pstate, string (i, chunk.end ));
1491
+ if (i < chunk.end ) (*schema) << new (ctx.mem ) String_Constant (pstate, string (i, chunk.end ));
1492
1492
break ;
1493
1493
}
1494
1494
++ i;
@@ -1538,7 +1538,7 @@ namespace Sass {
1538
1538
p = find_first_in_interval< exactly<hash_lbrace> >(i, str.end );
1539
1539
if (p) {
1540
1540
if (i < p) {
1541
- (*schema) << new (ctx.mem ) String_Quoted (pstate, string (i, p)); // accumulate the preceding segment if it's nonempty
1541
+ (*schema) << new (ctx.mem ) String_Constant (pstate, string (i, p)); // accumulate the preceding segment if it's nonempty
1542
1542
}
1543
1543
if (peek < sequence < optional_spaces, exactly<rbrace> > >(p+2 )) { position = p+2 ;
1544
1544
css_error (" Invalid CSS" , " after " , " : expected expression (e.g. 1px, bold), was " );
@@ -1558,7 +1558,7 @@ namespace Sass {
1558
1558
}
1559
1559
else { // no interpolants left; add the last segment if nonempty
1560
1560
if (i < str.end ) {
1561
- (*schema) << new (ctx.mem ) String_Quoted (pstate, string (i, str.end ));
1561
+ (*schema) << new (ctx.mem ) String_Constant (pstate, string (i, str.end ));
1562
1562
}
1563
1563
break ;
1564
1564
}
@@ -1573,10 +1573,10 @@ namespace Sass {
1573
1573
*kwd_arg << new (ctx.mem ) Variable (pstate, Util::normalize_underscores (lexed));
1574
1574
} else {
1575
1575
lex< alternatives< identifier_schema, identifier > >();
1576
- *kwd_arg << new (ctx.mem ) String_Quoted (pstate, lexed);
1576
+ *kwd_arg << new (ctx.mem ) String_Constant (pstate, lexed);
1577
1577
}
1578
1578
lex< exactly<' =' > >();
1579
- *kwd_arg << new (ctx.mem ) String_Quoted (pstate, lexed);
1579
+ *kwd_arg << new (ctx.mem ) String_Constant (pstate, lexed);
1580
1580
if (peek< variable >()) *kwd_arg << parse_list ();
1581
1581
else if (lex< number >()) *kwd_arg << new (ctx.mem ) Textual (pstate, Textual::NUMBER, Util::normalize_decimals (lexed));
1582
1582
else if (peek < ie_keyword_arg_value >()) { *kwd_arg << parse_list (); }
@@ -1596,7 +1596,7 @@ namespace Sass {
1596
1596
while (position < stop) {
1597
1597
// parse space between tokens
1598
1598
if (lex< spaces >() && num_items) {
1599
- (*schema) << new (ctx.mem ) String_Quoted (pstate, " " );
1599
+ (*schema) << new (ctx.mem ) String_Constant (pstate, " " );
1600
1600
}
1601
1601
if (peek< re_functional >()) {
1602
1602
(*schema) << parse_function_call ();
@@ -1605,7 +1605,7 @@ namespace Sass {
1605
1605
else if (lex< exactly < hash_lbrace > >()) {
1606
1606
// Try to lex static expression first
1607
1607
if (lex< re_static_expression >()) {
1608
- (*schema) << new (ctx.mem ) String_Quoted (pstate, lexed);
1608
+ (*schema) << new (ctx.mem ) String_Constant (pstate, lexed);
1609
1609
} else {
1610
1610
(*schema) << parse_list ();
1611
1611
}
@@ -1614,7 +1614,7 @@ namespace Sass {
1614
1614
}
1615
1615
// lex some string constants
1616
1616
else if (lex< alternatives < exactly<' %' >, exactly < ' -' >, identifier > >()) {
1617
- (*schema) << new (ctx.mem ) String_Quoted (pstate, lexed);
1617
+ (*schema) << new (ctx.mem ) String_Constant (pstate, lexed);
1618
1618
}
1619
1619
// lex a quoted string
1620
1620
else if (lex< quoted_string >()) {
@@ -1662,7 +1662,7 @@ namespace Sass {
1662
1662
// see if there any interpolants
1663
1663
const char * p = find_first_in_interval< exactly<hash_lbrace> >(id.begin , id.end );
1664
1664
if (!p) {
1665
- return new (ctx.mem ) String_Quoted (pstate, string (id.begin , id.end ));
1665
+ return new (ctx.mem ) String_Constant (pstate, string (id.begin , id.end ));
1666
1666
}
1667
1667
1668
1668
String_Schema* schema = new (ctx.mem ) String_Schema (pstate);
@@ -1671,7 +1671,7 @@ namespace Sass {
1671
1671
if (p) {
1672
1672
if (i < p) {
1673
1673
// accumulate the preceding segment if it's nonempty
1674
- (*schema) << new (ctx.mem ) String_Quoted (pstate, string (i, p));
1674
+ (*schema) << new (ctx.mem ) String_Constant (pstate, string (i, p));
1675
1675
}
1676
1676
// we need to skip anything inside strings
1677
1677
// create a new target in parser/prelexer
@@ -1693,7 +1693,7 @@ namespace Sass {
1693
1693
}
1694
1694
}
1695
1695
else { // no interpolants left; add the last segment if nonempty
1696
- if (i < end) (*schema) << new (ctx.mem ) String_Quoted (pstate, string (i, id.end ));
1696
+ if (i < end) (*schema) << new (ctx.mem ) String_Constant (pstate, string (i, id.end ));
1697
1697
break ;
1698
1698
}
1699
1699
}
@@ -1884,7 +1884,7 @@ namespace Sass {
1884
1884
if (lex < identifier_schema >()) {
1885
1885
String_Schema* schema = new (ctx.mem ) String_Schema (pstate);
1886
1886
*schema << media_query->media_type ();
1887
- *schema << new (ctx.mem ) String_Quoted (pstate, " " );
1887
+ *schema << new (ctx.mem ) String_Constant (pstate, " " );
1888
1888
*schema << parse_identifier_schema ();
1889
1889
media_query->media_type (schema);
1890
1890
}
@@ -2146,7 +2146,7 @@ namespace Sass {
2146
2146
// consume whitespace and comments
2147
2147
spaces, block_comment, line_comment,
2148
2148
// match `/deep/` selector (pass-trough)
2149
- // match reference /\/[^\/]+\//;
2149
+ // there is no functionality for it yet
2150
2150
schema_reference_combinator,
2151
2151
// match selector ops /[*&%,()\[\]]/
2152
2152
class_char < selector_lookahead_ops >,
0 commit comments