| Index: lib/src/prism/tests/languages/markup+javascript+csharp+aspnet/script_feature.test
|
| diff --git a/lib/src/prism/tests/languages/markup+javascript+csharp+aspnet/script_feature.test b/lib/src/prism/tests/languages/markup+javascript+csharp+aspnet/script_feature.test
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2be50eb3e6b66c7ffe289b1f49b1c80c3249823b
|
| --- /dev/null
|
| +++ b/lib/src/prism/tests/languages/markup+javascript+csharp+aspnet/script_feature.test
|
| @@ -0,0 +1,57 @@
|
| +<script runat="server">#foo</script>
|
| +<script>/foo/</script>
|
| +
|
| +----------------------------------------------------
|
| +
|
| +[
|
| + ["tag", [
|
| + ["tag", [
|
| + ["punctuation", "<"],
|
| + "script"
|
| + ]],
|
| + ["attr-name", [
|
| + "runat"
|
| + ]],
|
| + ["attr-value", [
|
| + ["punctuation", "="],
|
| + ["punctuation", "\""],
|
| + "server",
|
| + ["punctuation", "\""]
|
| + ]],
|
| + ["punctuation", ">"]
|
| + ]],
|
| + ["asp script", [
|
| + ["preprocessor", "#foo"]
|
| + ]],
|
| + ["tag", [
|
| + ["tag", [
|
| + ["punctuation", "</"],
|
| + "script"
|
| + ]],
|
| + ["punctuation", ">"]
|
| + ]],
|
| +
|
| + ["tag", [
|
| + ["tag", [
|
| + ["punctuation", "<"],
|
| + "script"
|
| + ]],
|
| + ["punctuation", ">"]
|
| + ]],
|
| + ["script", [
|
| + ["regex", "/foo/"]
|
| + ]],
|
| + ["tag", [
|
| + ["tag", [
|
| + ["punctuation", "</"],
|
| + "script"
|
| + ]],
|
| + ["punctuation", ">"]
|
| + ]]
|
| +]
|
| +
|
| +----------------------------------------------------
|
| +
|
| +Checks for scripts containing C# code.
|
| +Also checks that those don't break normal JS scripts.
|
| +Note: Markup is loaded before Javascript so that scripts are added into grammar.
|
|
|