| Index: lib/src/prism/tests/languages/coffeescript/block-regex_feature.test
|
| diff --git a/lib/src/prism/tests/languages/coffeescript/block-regex_feature.test b/lib/src/prism/tests/languages/coffeescript/block-regex_feature.test
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b01a9a42de843749ef2e386b4c011a59ad7e1dcf
|
| --- /dev/null
|
| +++ b/lib/src/prism/tests/languages/coffeescript/block-regex_feature.test
|
| @@ -0,0 +1,33 @@
|
| +///foo[bar]///
|
| +///foo
|
| +[bar]///
|
| +///foo
|
| +b#{ar}baz///
|
| +///foo #bar
|
| +baz///
|
| +
|
| +----------------------------------------------------
|
| +
|
| +[
|
| + ["block-regex", [
|
| + "///foo[bar]///"
|
| + ]],
|
| + ["block-regex", [
|
| + "///foo\r\n[bar]///"
|
| + ]],
|
| + ["block-regex", [
|
| + "///foo\r\nb",
|
| + ["interpolation", "#{ar}"],
|
| + "baz///"
|
| + ]],
|
| + ["block-regex", [
|
| + "///foo ",
|
| + ["comment", "#bar"],
|
| + "\r\nbaz///"
|
| + ]]
|
| +]
|
| +
|
| +----------------------------------------------------
|
| +
|
| +Checks for block regex.
|
| +Also checks for comments and interpolations inside block regex.
|
|
|