@@ -691,8 +691,7 @@ namespace Sass {
691
691
692
692
while (peek_css< exactly<' ,' > >())
693
693
{
694
- lex< spaces >();
695
- lex< css_comments >();
694
+ lex< css_comments >(false );
696
695
// consume everything up and including the comma speparator
697
696
reloop = lex< exactly<' ,' > >() != 0 ;
698
697
// remember line break (also between some commas)
@@ -847,7 +846,7 @@ namespace Sass {
847
846
848
847
Simple_Selector* Parser::parse_simple_selector ()
849
848
{
850
- lex < css_comments >();
849
+ lex < css_comments >(false );
851
850
if (lex< alternatives < id_name, class_name > >()) {
852
851
return SASS_MEMORY_NEW (ctx.mem , Selector_Qualifier, pstate, lexed);
853
852
}
@@ -1000,7 +999,7 @@ namespace Sass {
1000
999
bool is_indented = true ;
1001
1000
const std::string property (lexed);
1002
1001
if (!lex_css< one_plus< exactly<' :' > > >()) error (" property \" " + property + " \" must be followed by a ':'" , pstate);
1003
- lex < optional_css_comments >();
1002
+ lex < css_comments >(false );
1004
1003
if (peek_css< exactly<' ;' > >()) error (" style declaration must contain a value" , pstate);
1005
1004
if (peek_css< exactly<' {' > >()) is_indented = false ; // don't indent if value is empty
1006
1005
if (peek_css< static_value >()) {
@@ -1024,7 +1023,7 @@ namespace Sass {
1024
1023
}
1025
1024
}
1026
1025
}
1027
-
1026
+ lex < css_comments >( false );
1028
1027
auto decl = SASS_MEMORY_NEW (ctx.mem , Declaration, prop->pstate (), prop, value/* , lex<kwd_important>()*/ );
1029
1028
decl->is_indented (is_indented);
1030
1029
return decl;
@@ -1332,6 +1331,7 @@ namespace Sass {
1332
1331
// called from parse_value_schema
1333
1332
Expression* Parser::parse_factor ()
1334
1333
{
1334
+ lex < css_comments >(false );
1335
1335
if (lex_css< exactly<' (' > >()) {
1336
1336
// parse_map may return a list
1337
1337
Expression* value = parse_map ();
@@ -1399,7 +1399,7 @@ namespace Sass {
1399
1399
// parse one value for a list
1400
1400
Expression* Parser::parse_value ()
1401
1401
{
1402
- lex< css_comments >();
1402
+ lex< css_comments >(false );
1403
1403
if (lex< ampersand >())
1404
1404
{
1405
1405
return SASS_MEMORY_NEW (ctx.mem , Parent_Selector, pstate); }
@@ -2099,15 +2099,15 @@ namespace Sass {
2099
2099
at_rule->selector (parse_selector_list ());
2100
2100
}
2101
2101
2102
- lex < css_comments >();
2102
+ lex < css_comments >(false );
2103
2103
2104
2104
if (lex < static_property >()) {
2105
2105
at_rule->value (parse_interpolated_chunk (Token (lexed)));
2106
2106
} else if (!(peek < alternatives < exactly<' {' >, exactly<' }' >, exactly<' ;' > > >())) {
2107
2107
at_rule->value (parse_list ());
2108
2108
}
2109
2109
2110
- lex < css_comments >();
2110
+ lex < css_comments >(false );
2111
2111
2112
2112
if (peek< exactly<' {' > >()) {
2113
2113
at_rule->block (parse_block ());
0 commit comments