Skip to content

Commit

Permalink
Merge pull request #436 from wonja/interchangeable_hyphens_underscores
Browse files Browse the repository at this point in the history
Interchangeable hyphens underscores #435
  • Loading branch information
Aaron Leung committed Jul 8, 2014
2 parents 61022d0 + 7bebf78 commit fca1f75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ namespace Sass {
lex< for_directive >();
Position for_source_position = source_position;
if (!lex< variable >()) error("@for directive requires an iteration variable");
string var(lexed);
string var(Util::normalize_underscores(lexed));
if (!lex< from >()) error("expected 'from' keyword in @for directive");
Expression* lower_bound = parse_expression();
lower_bound->is_delayed(false);
Expand All @@ -1378,7 +1378,7 @@ namespace Sass {
lex < each_directive >();
Position each_source_position = source_position;
if (!lex< variable >()) error("@each directive requires an iteration variable");
string var(lexed);
string var(Util::normalize_underscores(lexed));
if (!lex< in >()) error("expected 'in' keyword in @each directive");
Expression* list = parse_list();
list->is_delayed(false);
Expand Down

0 comments on commit fca1f75

Please sign in to comment.