Chromium Code Reviews| Index: lib/src/prism/tests/languages/sql/comment_feature.test |
| diff --git a/lib/src/prism/tests/languages/sql/comment_feature.test b/lib/src/prism/tests/languages/sql/comment_feature.test |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e058dc2b6be702a8e95ee76ff73a14ed589922ae |
| --- /dev/null |
| +++ b/lib/src/prism/tests/languages/sql/comment_feature.test |
| @@ -0,0 +1,26 @@ |
| +/**/ |
| +/* foo |
| +bar */ |
| +-- |
| +-- foo |
| +// |
| +// foo |
| +# |
| +# foo |
| + |
| +---------------------------------------------------- |
| + |
| +[ |
| + ["comment", "/**/"], |
| + ["comment", "/* foo\r\nbar */"], |
| + ["comment", "--"], |
| + ["comment", "-- foo"], |
| + ["comment", "//"], |
| + ["comment", "// foo"], |
| + ["comment", "#"], |
| + ["comment", "# foo"] |
| +] |
| + |
| +---------------------------------------------------- |
| + |
| +Checks for comments. |