File tree Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ namespace Sass {
188
188
mq = Parser::from_c_str (mq->to_string (ctx.c_options ).c_str (), ctx, mq->pstate ()).parse_media_queries ();
189
189
Media_Block* mm = SASS_MEMORY_NEW (ctx.mem , Media_Block,
190
190
m->pstate (),
191
- static_cast <List*>(mq),
191
+ static_cast <List*>(mq-> perform (&eval) ),
192
192
m->block ()->perform (this )->block (),
193
193
0 );
194
194
mm->tabs (m->tabs ());
Original file line number Diff line number Diff line change @@ -154,8 +154,8 @@ namespace Sass {
154
154
>(src);
155
155
}
156
156
157
- // Match CSS unit identifier.
158
- const char * unit_identifier (const char * src)
157
+ // Match a single CSS unit
158
+ const char * one_unit (const char * src)
159
159
{
160
160
return sequence <
161
161
optional < exactly <' -' > >,
@@ -170,6 +170,34 @@ namespace Sass {
170
170
>(src);
171
171
}
172
172
173
+ // Match numerator/denominator CSS units
174
+ const char * multiple_units (const char * src)
175
+ {
176
+ return
177
+ sequence <
178
+ one_unit,
179
+ zero_plus <
180
+ sequence <
181
+ exactly <' *' >,
182
+ one_unit
183
+ >
184
+ >
185
+ >(src);
186
+ }
187
+
188
+ // Match complex CSS unit identifiers
189
+ const char * unit_identifier (const char * src)
190
+ {
191
+ return sequence <
192
+ multiple_units,
193
+ optional <
194
+ sequence <
195
+ exactly <' /' >,
196
+ multiple_units
197
+ > >
198
+ >(src);
199
+ }
200
+
173
201
const char * identifier_alnums (const char * src)
174
202
{
175
203
return one_plus< identifier_alnum >(src);
Original file line number Diff line number Diff line change @@ -200,6 +200,8 @@ namespace Sass {
200
200
const char * strict_identifier_alpha (const char * src);
201
201
const char * strict_identifier_alnum (const char * src);
202
202
// Match a CSS unit identifier.
203
+ const char * one_unit (const char * src);
204
+ const char * multiple_units (const char * src);
203
205
const char * unit_identifier (const char * src);
204
206
// const char* strict_identifier_alnums(const char* src);
205
207
// Match reference selector.
You can’t perform that action at this time.
0 commit comments