summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2006-04-16 00:42:38 +0000
committermurphy <murphy@rubychan.de>2006-04-16 00:42:38 +0000
commita2834bb05c4ab5bd32437f333a26f8286438ade4 (patch)
tree9c984ba59c66e301de4de18b46e3f76c50ead402 /test
parentee808b400543d924286eebaee8ed1ad8a4e28ced (diff)
downloadcoderay-a2834bb05c4ab5bd32437f333a26f8286438ade4.tar.gz
All scanners revisited not to produce errors unless in DEBUG mode. [thx@Daniel]
Fixed numerization for input not ending with \n. Added test cases in C scanner tests. Added WoNáDo as contributer for last Ruby scanner fix. Updated TODO.
Diffstat (limited to 'test')
-rw-r--r--test/c/empty.in.c0
-rw-r--r--test/c/empty.out.raydebug0
-rw-r--r--test/c/error.in.c1
-rw-r--r--test/c/error.out.raydebug1
-rw-r--r--test/c/error2.in.c1
-rw-r--r--test/c/error2.out.raydebug1
-rw-r--r--test/html/tolkien.html1
7 files changed, 4 insertions, 1 deletions
diff --git a/test/c/empty.in.c b/test/c/empty.in.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/c/empty.in.c
diff --git a/test/c/empty.out.raydebug b/test/c/empty.out.raydebug
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/c/empty.out.raydebug
diff --git a/test/c/error.in.c b/test/c/error.in.c
new file mode 100644
index 0000000..9cad53e
--- /dev/null
+++ b/test/c/error.in.c
@@ -0,0 +1 @@
+\\
diff --git a/test/c/error.out.raydebug b/test/c/error.out.raydebug
new file mode 100644
index 0000000..bc3c350
--- /dev/null
+++ b/test/c/error.out.raydebug
@@ -0,0 +1 @@
+error(\\)\
diff --git a/test/c/error2.in.c b/test/c/error2.in.c
new file mode 100644
index 0000000..1910281
--- /dev/null
+++ b/test/c/error2.in.c
@@ -0,0 +1 @@
+foo \ No newline at end of file
diff --git a/test/c/error2.out.raydebug b/test/c/error2.out.raydebug
new file mode 100644
index 0000000..ccd2125
--- /dev/null
+++ b/test/c/error2.out.raydebug
@@ -0,0 +1 @@
+ident(foo) \ No newline at end of file
diff --git a/test/html/tolkien.html b/test/html/tolkien.html
index fd7ae2d..f4dd841 100644
--- a/test/html/tolkien.html
+++ b/test/html/tolkien.html
@@ -284,7 +284,6 @@ ol.CodeRay li { white-space: pre }
</tt>167<tt>
</tt>168<tt>
</tt>169<tt>
-</tt><strong>170</strong><tt>
</tt></pre></td>
<td class="code"><pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }"><span title="[:preprocessor]" class="pp">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span><span title="[:space]" class="NO_HIGHLIGHT"><tt>
</tt></span><span title="[:tag]" class="ta">&lt;html</span><span title="[:space]" class="NO_HIGHLIGHT"> </span><span title="[:attribute_name]" class="an">xmlns</span><span title="[:operator]" class="NO_HIGHLIGHT">=</span><span title="[:string]" class="s"><span title="[:string, :delimiter]" class="dl">&quot;</span><span title="[:string, :content]" class="k">http://www.w3.org/1999/xhtml</span><span title="[:string, :delimiter]" class="dl">&quot;</span></span><span title="[:space]" class="NO_HIGHLIGHT"> </span><span title="[:attribute_name]" class="an">xml:lang</span><span title="[:operator]" class="NO_HIGHLIGHT">=</span><span title="[:string]" class="s"><span title="[:string, :delimiter]" class="dl">&quot;</span><span title="[:string, :content]" class="k">de</span><span title="[:string, :delimiter]" class="dl">&quot;</span></span><span title="[:space]" class="NO_HIGHLIGHT"> </span><span title="[:attribute_name]" class="an">lang</span><span title="[:operator]" class="NO_HIGHLIGHT">=</span><span title="[:string]" class="s"><span title="[:string, :delimiter]" class="dl">&quot;</span><span title="[:string, :content]" class="k">de</span><span title="[:string, :delimiter]" class="dl">&quot;</span></span><span title="[:tag]" class="ta">&gt;</span><span title="[:space]" class="NO_HIGHLIGHT"><tt>