Skip to content

Commit

Permalink
Merge pull request sass#655 from xzyfer/fix/issue_641
Browse files Browse the repository at this point in the history
Fix error for some selectors with interpolants
  • Loading branch information
xzyfer committed Nov 17, 2014
2 parents 4cd5034 + bdc449a commit 2e48c07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1660,6 +1660,7 @@ namespace Sass {

while ((q = peek< identifier >(p)) ||
(q = peek< hyphens_and_identifier >(p)) ||
(q = peek< hyphens_and_name >(p)) ||
(q = peek< type_selector >(p)) ||
(q = peek< id_name >(p)) ||
(q = peek< class_name >(p)) ||
Expand Down
3 changes: 3 additions & 0 deletions prelexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ namespace Sass {
const char* hyphens_and_identifier(const char* src) {
return sequence< zero_plus< exactly< '-' > >, identifier >(src);
}
const char* hyphens_and_name(const char* src) {
return sequence< zero_plus< exactly< '-' > >, name >(src);
}
const char* universal(const char* src) {
return sequence< optional<namespace_prefix>, exactly<'*'> >(src);
}
Expand Down
1 change: 1 addition & 0 deletions prelexer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ namespace Sass {
const char* namespace_prefix(const char* src);
const char* type_selector(const char* src);
const char* hyphens_and_identifier(const char* src);
const char* hyphens_and_name(const char* src);
const char* universal(const char* src);
// Match CSS id names.
const char* id_name(const char* src);
Expand Down

0 comments on commit 2e48c07

Please sign in to comment.