Skip to content

Commit

Permalink
Merge pull request #846 from mmaxim/master
Browse files Browse the repository at this point in the history
Fix crash in Parser::parse_term()
  • Loading branch information
xzyfer committed Feb 16, 2015
2 parents 0c0428f + 9e1a6bd commit 8336397
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1056,12 +1056,8 @@ namespace Sass {

// Special case: Ruby sass never tries to modulo if the lhs contains an interpolant
if (peek< exactly<'%'> >(position) && fact1->concrete_type() == Expression::STRING) {
try {
String_Schema* ss = dynamic_cast<String_Schema*>(fact1);
if (ss->has_interpolants()) return fact1;
}
catch (bad_cast&) {}
catch (...) { throw; }
String_Schema* ss = dynamic_cast<String_Schema*>(fact1);
if (ss && ss->has_interpolants()) return fact1;
}

// if it's a singleton, return it directly; don't wrap it
Expand Down

0 comments on commit 8336397

Please sign in to comment.