Index: lib/src/prism/tests/languages/scss+haml/scss_inclusion.test |
diff --git a/lib/src/prism/tests/languages/scss+haml/scss_inclusion.test b/lib/src/prism/tests/languages/scss+haml/scss_inclusion.test |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3f52393c649b8cef51599e5dec1f26dd3f30805a |
--- /dev/null |
+++ b/lib/src/prism/tests/languages/scss+haml/scss_inclusion.test |
@@ -0,0 +1,40 @@ |
+:scss |
+ #main { |
+ width: $width; |
+ } |
+ |
+~ |
+ :scss |
+ #main { |
+ width: $width; |
+ } |
+ |
+---------------------------------------------------- |
+ |
+[ |
+ ["filter-scss", [ |
+ ["filter-name", ":scss"], |
+ ["selector", ["#main "]], |
+ ["punctuation", "{"], |
+ ["property", "width"], |
+ ["punctuation", ":"], |
+ ["variable", "$width"], |
+ ["punctuation", ";"], |
+ ["punctuation", "}"] |
+ ]], |
+ ["punctuation", "~"], |
+ ["filter-scss", [ |
+ ["filter-name", ":scss"], |
+ ["selector", ["#main "]], |
+ ["punctuation", "{"], |
+ ["property", "width"], |
+ ["punctuation", ":"], |
+ ["variable", "$width"], |
+ ["punctuation", ";"], |
+ ["punctuation", "}"] |
+ ]] |
+] |
+ |
+---------------------------------------------------- |
+ |
+Checks for CSS filter in Haml. The tilde serves only as a separator. |