OLD | NEW |
(Empty) | |
| 1 <script runat="server">#foo</script> |
| 2 <script>/foo/</script> |
| 3 |
| 4 ---------------------------------------------------- |
| 5 |
| 6 [ |
| 7 ["tag", [ |
| 8 ["tag", [ |
| 9 ["punctuation", "<"], |
| 10 "script" |
| 11 ]], |
| 12 ["attr-name", [ |
| 13 "runat" |
| 14 ]], |
| 15 ["attr-value", [ |
| 16 ["punctuation", "="], |
| 17 ["punctuation", "\""], |
| 18 "server", |
| 19 ["punctuation", "\""] |
| 20 ]], |
| 21 ["punctuation", ">"] |
| 22 ]], |
| 23 ["asp script", [ |
| 24 ["preprocessor", "#foo"] |
| 25 ]], |
| 26 ["tag", [ |
| 27 ["tag", [ |
| 28 ["punctuation", "</"], |
| 29 "script" |
| 30 ]], |
| 31 ["punctuation", ">"] |
| 32 ]], |
| 33 |
| 34 ["tag", [ |
| 35 ["tag", [ |
| 36 ["punctuation", "<"], |
| 37 "script" |
| 38 ]], |
| 39 ["punctuation", ">"] |
| 40 ]], |
| 41 ["script", [ |
| 42 ["regex", "/foo/"] |
| 43 ]], |
| 44 ["tag", [ |
| 45 ["tag", [ |
| 46 ["punctuation", "</"], |
| 47 "script" |
| 48 ]], |
| 49 ["punctuation", ">"] |
| 50 ]] |
| 51 ] |
| 52 |
| 53 ---------------------------------------------------- |
| 54 |
| 55 Checks for scripts containing C# code. |
| 56 Also checks that those don't break normal JS scripts. |
| 57 Note: Markup is loaded before Javascript so that scripts are added into grammar. |
OLD | NEW |