Commit 3711f8dd by Aaron Leung

Working on some hairy parsing stuff.

parent 3825b29b
$x: 20px/10;
div {
a: a, b, c, d;
b: a b, c d;
c: a (b, c) d;
e: $x;
f: 20px / 10;
g: (1 (9*2))/3;
h: (1/2 3/4 5/6);
i: 4 - (2) 3;
}
...@@ -29,6 +29,7 @@ int main(int argc, char* argv[]) { ...@@ -29,6 +29,7 @@ int main(int argc, char* argv[]) {
Document doc(path, 0); Document doc(path, 0);
doc.parse_scss(); doc.parse_scss();
cerr << "successfully parsed document" << endl;
string output = doc.emit_css(style); string output = doc.emit_css(style);
cout << output; cout << output;
......
...@@ -9,5 +9,11 @@ a b { ...@@ -9,5 +9,11 @@ a b {
content: "glux"; content: "glux";
color: green; color: green;
} }
:not(.foo) {
hoo: boo;
}
// the following is not actually valid, but sass accepts it
:not(:not(:not(.foo[bleeble="blabble"] > .hello, .gluxbux))) { hoo: boo; }
a { b: c; }
} }
} }
\ No newline at end of file
...@@ -7,3 +7,9 @@ a b { ...@@ -7,3 +7,9 @@ a b {
a b :first-child ::after, a b :nth-of-type(-2n+1) ::after { a b :first-child ::after, a b :nth-of-type(-2n+1) ::after {
content: "glux"; content: "glux";
color: green; } color: green; }
a b :first-child :not(.foo), a b :nth-of-type(-2n+1) :not(.foo) {
hoo: boo; }
a b :first-child :not(:not(:not(.foo[bleeble="blabble"] > .hello, .gluxbux))), a b :nth-of-type(-2n+1) :not(:not(:not(.foo[bleeble="blabble"] > .hello, .gluxbux))) {
hoo: boo; }
a b :first-child a, a b :nth-of-type(-2n+1) a {
b: c; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment