You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 9, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 9, 2020. It is now read-only.
TLDR; replace " > " with " >" (no space after greater than)
I tried to play with this a bit but I don't understand pyparsing enough to fix it. I tried a few test cases, and every time it would work if I was lazy, like "i>b{color: red}" and fail when I was not lazy, like "i > b { color: red }". After a bit of trial and error I found that the error is caused by "greater-than space". I then did a find and replace, removing every "> " with ">" and the problem went away. Note, the file I used contains 17 immediate child selectors, so it was tested with a variety of combinations. Hope that holds you over till they fix it.
nav.top,
^
Expected end of text (at char 3), (line:1, col:4)
while this doesn't:
nav.top,
body >footer {
color: #e7e7e7;
}
Another example:
body > footer {
clear: both;
}
yields:
body > footer {
^
Expected end of text (at char 14), (line:1, col:15)
Even worse:
#foobar,
body > footer {
clear: both;
}
This results in a misleading error message that doesn't even point to a certain line:
invalid literal for int() with base 16: 'fo'
This is quite annoying and hurts readability. Also, that's quite an adoption stopper (I encountered it before my stylesheet compiled even once; pyScss had no problem with this, BTW). Please fix this.
Activity
casscauley commentedon Dec 23, 2011
TLDR; replace " > " with " >" (no space after greater than)
I tried to play with this a bit but I don't understand pyparsing enough to fix it. I tried a few test cases, and every time it would work if I was lazy, like "i>b{color: red}" and fail when I was not lazy, like "i > b { color: red }". After a bit of trial and error I found that the error is caused by "greater-than space". I then did a find and replace, removing every "> " with ">" and the problem went away. Note, the file I used contains 17 immediate child selectors, so it was tested with a variety of combinations. Hope that holds you over till they fix it.
homeworkprod commentedon Jan 15, 2012
I can reproduce that.
blows up complaining:
while this doesn't:
Another example:
yields:
Even worse:
This results in a misleading error message that doesn't even point to a certain line:
This is quite annoying and hurts readability. Also, that's quite an adoption stopper (I encountered it before my stylesheet compiled even once; pyScss had no problem with this, BTW). Please fix this.
klen commentedon Jan 23, 2012
Sorry, I not supported python-scss anymore. Use https://github.com/Kronuz/pyScss