summaryrefslogtreecommitdiff
path: root/test/scanners/php/elvis.expected.raydebug
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-12-28 07:27:12 +0000
committermurphy <murphy@rubychan.de>2009-12-28 07:27:12 +0000
commit432aeb74d5a49e6f0efd1063113cef099c93aef6 (patch)
treef300ae05c2418721ea188ca1acc763cff06e71b7 /test/scanners/php/elvis.expected.raydebug
parent1982b2bf7e7bfa333838cf2f3e7613c00d2a67c3 (diff)
downloadcoderay-432aeb74d5a49e6f0efd1063113cef099c93aef6.tar.gz
Copying changes and fixes for 0.9.0rc3 from terminal-encoder branch over to trunk.
Diffstat (limited to 'test/scanners/php/elvis.expected.raydebug')
-rw-r--r--test/scanners/php/elvis.expected.raydebug28
1 files changed, 27 insertions, 1 deletions
diff --git a/test/scanners/php/elvis.expected.raydebug b/test/scanners/php/elvis.expected.raydebug
index 29e240c..894ad01 100644
--- a/test/scanners/php/elvis.expected.raydebug
+++ b/test/scanners/php/elvis.expected.raydebug
@@ -1 +1,27 @@
-local_variable($this)operator(?)local_variable($is)operator(+)ident(NO)operator(:)local_variable($label)
+local_variable($this)operator(?)local_variable($is)operator(+)constant(NO)operator(:)local_variable($label)operator(;)
+
+comment(// Two labels:)
+label(foo)operator(:) reserved(switch) operator(()constant(TYPE)operator(()ident(v)operator(\))operator(\)) operator({)
+ reserved(case) constant(T_CLASS)operator(:) reserved(case) constant(T_MODULE)operator(:)
+ ident(rb_str_append)operator(()ident(s)operator(,) ident(rb_inspect)operator(()ident(v)operator(\))operator(\))operator(;)
+ reserved(break)operator(;)
+ reserved(default)operator(:)
+ label(bar)operator(:)
+ ident(rb_str_append)operator(()ident(s)operator(,) ident(rb_any_to_s)operator(()ident(v)operator(\))operator(\))operator(;)
+ reserved(break)operator(;)
+operator(})
+comment(// These are two more labels:)
+reserved(function)operator(()ident(call)operator(\))operator(;)
+label(label2)operator(:) ident(label3)operator(:) ident(a) operator(=) ident(b) operator(+) ident(c)operator(;)
+
+comment(// Another label:)
+reserved(if) operator(()integer(1)operator(\)) operator({)
+ label(label4)operator(:) ident(a) operator(=) ident(b) operator(+) ident(c)operator(;)
+operator(})
+
+comment(// Not a label.)
+ident(test)operator(()
+ ident(a)operator(?)
+ ident(b)operator(:)
+ ident(c)
+operator(\)) \ No newline at end of file