Index: lib/src/prism/tests/languages/autoit/comment_feature.test |
diff --git a/lib/src/prism/tests/languages/autoit/comment_feature.test b/lib/src/prism/tests/languages/autoit/comment_feature.test |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d88708f344a3dcc17d707a0ce3c776bd54403f89 |
--- /dev/null |
+++ b/lib/src/prism/tests/languages/autoit/comment_feature.test |
@@ -0,0 +1,33 @@ |
+; |
+; foo |
+#comments-start |
+ foobar() |
+#comments-end |
+#cs |
+ foobar() |
+#ce |
+;#comments-start |
+ foobar() |
+;#comments-end |
+;#cs |
+ foobar() |
+;#ce |
+ |
+---------------------------------------------------- |
+ |
+[ |
+ ["comment", ";"], |
+ ["comment", "; foo"], |
+ ["comment", "#comments-start\r\n\tfoobar()\r\n#comments-end"], |
+ ["comment", "#cs\r\n\tfoobar()\r\n#ce"], |
+ ["comment", ";#comments-start"], |
+ ["function", "foobar"], ["punctuation", "("], ["punctuation", ")"], |
+ ["comment", ";#comments-end"], |
+ ["comment", ";#cs"], |
+ ["function", "foobar"], ["punctuation", "("], ["punctuation", ")"], |
+ ["comment", ";#ce"] |
+] |
+ |
+---------------------------------------------------- |
+ |
+Checks for comments. |