We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e6d8a6 commit 5ff5859Copy full SHA for 5ff5859
src/parser.cpp
@@ -2791,6 +2791,7 @@ namespace Sass {
2791
>(p)
2792
) {
2793
bool could_be_property = peek< sequence< exactly<'-'>, exactly<'-'> > >(p) != 0;
2794
+ bool could_be_escaped = false;
2795
while (p < q) {
2796
// did we have interpolations?
2797
if (*p == '#' && *(p+1) == '{') {
@@ -2799,9 +2800,10 @@ namespace Sass {
2799
2800
}
2801
// A property that's ambiguous with a nested selector is interpreted as a
2802
// custom property.
- if (*p == ':') {
2803
+ if (*p == ':' && !could_be_escaped) {
2804
rv.is_custom_property = could_be_property || p+1 == q || peek< space >(p+1);
2805
2806
+ could_be_escaped = *p == '\\';
2807
++ p;
2808
2809
// store anyway }
0 commit comments