| Index: lib/src/prism/tests/languages/stylus/property-declaration_feature.test
|
| diff --git a/lib/src/prism/tests/languages/stylus/property-declaration_feature.test b/lib/src/prism/tests/languages/stylus/property-declaration_feature.test
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..89fa0e1b0897b91e4ad6a007ee604e188fd54808
|
| --- /dev/null
|
| +++ b/lib/src/prism/tests/languages/stylus/property-declaration_feature.test
|
| @@ -0,0 +1,52 @@
|
| +div
|
| + width 40px
|
| + color: red
|
| + background: blue;
|
| +
|
| +div {
|
| +background-{foo}: bar;
|
| +}
|
| +
|
| +div
|
| + {foo} bar
|
| +
|
| +----------------------------------------------------
|
| +
|
| +[
|
| + ["selector", ["div"]],
|
| + ["property-declaration", [
|
| + ["property", ["width"]], ["number", "40"], "px"
|
| + ]],
|
| + ["property-declaration", [
|
| + ["property", ["color"]], ["punctuation", ":"], " red"
|
| + ]],
|
| + ["property-declaration", [
|
| + ["property", ["background"]], ["punctuation", ":"], " blue", ["punctuation", ";"]
|
| + ]],
|
| + ["selector", ["div ", ["punctuation", "{"]]],
|
| + ["property-declaration", [
|
| + ["property", [
|
| + "background-",
|
| + ["interpolation", [
|
| + ["punctuation", "{"], "foo", ["punctuation", "}"]
|
| + ]]
|
| + ]],
|
| + ["punctuation", ":"],
|
| + " bar",
|
| + ["punctuation", ";"]
|
| + ]],
|
| + ["punctuation", "}"],
|
| + ["selector", ["div"]],
|
| + ["property-declaration", [
|
| + ["property", [
|
| + ["interpolation", [
|
| + ["punctuation", "{"], "foo", ["punctuation", "}"]
|
| + ]]
|
| + ]],
|
| + " bar"
|
| + ]]
|
| +]
|
| +
|
| +----------------------------------------------------
|
| +
|
| +Checks for property declarations.
|
|
|