diff --git a/parser.cpp b/parser.cpp index f3825de8c..cf2f384ba 100644 --- a/parser.cpp +++ b/parser.cpp @@ -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)) || diff --git a/prelexer.cpp b/prelexer.cpp index ff1f2234f..d441d51b2 100644 --- a/prelexer.cpp +++ b/prelexer.cpp @@ -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, exactly<'*'> >(src); } diff --git a/prelexer.hpp b/prelexer.hpp index 4a9e054c5..d9bf5414a 100644 --- a/prelexer.hpp +++ b/prelexer.hpp @@ -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);