@@ -1068,7 +1068,7 @@ namespace Sass {
1068
1068
exactly<' {' >,
1069
1069
exactly<' )' >,
1070
1070
exactly<' :' >,
1071
- exactly< 0 > ,
1071
+ end_of_file ,
1072
1072
exactly<ellipsis>,
1073
1073
default_flag,
1074
1074
global_flag
@@ -1094,7 +1094,7 @@ namespace Sass {
1094
1094
exactly<' {' >,
1095
1095
exactly<' )' >,
1096
1096
exactly<' :' >,
1097
- exactly< 0 > ,
1097
+ end_of_file ,
1098
1098
exactly<ellipsis>,
1099
1099
default_flag,
1100
1100
global_flag
@@ -1121,7 +1121,7 @@ namespace Sass {
1121
1121
exactly<' )' >,
1122
1122
exactly<' ,' >,
1123
1123
exactly<' :' >,
1124
- exactly< 0 > ,
1124
+ end_of_file ,
1125
1125
exactly<ellipsis>,
1126
1126
default_flag,
1127
1127
global_flag
@@ -1139,7 +1139,7 @@ namespace Sass {
1139
1139
exactly<' )' >,
1140
1140
exactly<' ,' >,
1141
1141
exactly<' :' >,
1142
- exactly< 0 > ,
1142
+ end_of_file ,
1143
1143
exactly<ellipsis>,
1144
1144
default_flag,
1145
1145
global_flag
@@ -1203,7 +1203,7 @@ namespace Sass {
1203
1203
> >(position))
1204
1204
{
1205
1205
// is directly adjancent to expression?
1206
- bool left_ws = peek < css_comments >();
1206
+ bool left_ws = peek < css_comments >() != NULL ;
1207
1207
// parse the operator
1208
1208
enum Sass_OP op
1209
1209
= lex<kwd_eq>() ? Sass_OP::EQ
@@ -1215,10 +1215,10 @@ namespace Sass {
1215
1215
// we checked the possibilites on top of fn
1216
1216
: Sass_OP::EQ;
1217
1217
// is directly adjancent to expression?
1218
- bool right_ws = peek < css_comments >();
1218
+ bool right_ws = peek < css_comments >() != NULL ;
1219
1219
operators.push_back ({ op, left_ws, right_ws });
1220
1220
operands.push_back (parse_expression ());
1221
- left_ws = peek < css_comments >();
1221
+ left_ws = peek < css_comments >() != NULL ;
1222
1222
}
1223
1223
// parse the operator
1224
1224
return fold_operands (lhs, operands, operators);
@@ -1247,7 +1247,7 @@ namespace Sass {
1247
1247
1248
1248
std::vector<Expression*> operands;
1249
1249
std::vector<Operand> operators;
1250
- bool left_ws = peek < css_comments >();
1250
+ bool left_ws = peek < css_comments >() != NULL ;
1251
1251
while (
1252
1252
lex_css< exactly<' +' > >() ||
1253
1253
@@ -1259,10 +1259,10 @@ namespace Sass {
1259
1259
) {
1260
1260
1261
1261
1262
- bool right_ws = peek < css_comments >();
1262
+ bool right_ws = peek < css_comments >() != NULL ;
1263
1263
operators.push_back ({ lexed.to_string () == " +" ? Sass_OP::ADD : Sass_OP::SUB, left_ws, right_ws });
1264
1264
operands.push_back (parse_operators ());
1265
- left_ws = peek < css_comments >();
1265
+ left_ws = peek < css_comments >() != NULL ;
1266
1266
}
1267
1267
1268
1268
if (operands.size () == 0 ) return lhs;
0 commit comments