From bdc449a65c0e91336d64e05b18f161895f25b85c Mon Sep 17 00:00:00 2001 From: xzyfer Date: Mon, 17 Nov 2014 16:48:26 +1100 Subject: [PATCH] Fix error for some selectors with interpolants --- parser.cpp | 1 + prelexer.cpp | 3 +++ prelexer.hpp | 1 + 3 files changed, 5 insertions(+) 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);