diff options
author | murphy <murphy@rubychan.de> | 2009-12-30 07:01:18 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2009-12-30 07:01:18 +0000 |
commit | ce9f66c846a6172dde52b6130176d1100b133f4d (patch) | |
tree | a35e99bcc735e680f51fbd42c7682eecf018979a | |
parent | 432aeb74d5a49e6f0efd1063113cef099c93aef6 (diff) | |
download | coderay-ce9f66c846a6172dde52b6130176d1100b133f4d.tar.gz |
Added a test for XML literals in JavaScript (see issue #137).
-rw-r--r-- | test/scanners/javascript/xml.expected.raydebug | 2 | ||||
-rw-r--r-- | test/scanners/javascript/xml.in.js | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/scanners/javascript/xml.expected.raydebug b/test/scanners/javascript/xml.expected.raydebug new file mode 100644 index 0000000..a45b01c --- /dev/null +++ b/test/scanners/javascript/xml.expected.raydebug @@ -0,0 +1,2 @@ +keyword(var) ident(link) operator(=) tag(<a) attribute_name(href)operator(=)string<delimiter(")content(http://coderay.rubychan.de)delimiter(")>tag(>)plain(CodeRay)tag(</a>)operator(;) +keyword(var) ident(link) operator(=) tag(<div>)tag(<div>)tag(</div>)tag(</div>)operator(;)
\ No newline at end of file diff --git a/test/scanners/javascript/xml.in.js b/test/scanners/javascript/xml.in.js new file mode 100644 index 0000000..a5f4f49 --- /dev/null +++ b/test/scanners/javascript/xml.in.js @@ -0,0 +1,2 @@ +var link = <a href="http://coderay.rubychan.de">CodeRay</a>; +var link = <div><div></div></div>;
\ No newline at end of file |