summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGusakov Nikita <dev@nkt.me>2014-02-16 21:09:40 +0400
committerGusakov Nikita <dev@nkt.me>2014-02-16 21:09:40 +0400
commitc185cdf3bee199db573c436723b366b1803c4980 (patch)
treeb94f815bacbe98e8bc366269352295a57ab74e42 /tests
parent76a3e173102b440ae5566be2fb01507ad1c423cc (diff)
downloadpygments-c185cdf3bee199db573c436723b366b1803c4980.tar.gz
Add zephir lexer and test
Diffstat (limited to 'tests')
-rw-r--r--tests/examplefiles/test.zep33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/examplefiles/test.zep b/tests/examplefiles/test.zep
new file mode 100644
index 00000000..4724d4c4
--- /dev/null
+++ b/tests/examplefiles/test.zep
@@ -0,0 +1,33 @@
+namespace Test;
+
+use Test\Foo;
+
+class Bar
+{
+ protected a;
+ private b;
+ public c {set, get};
+
+ public function __construct(string str, boolean bool)
+ {
+ let this->c = str;
+ this->setC(bool);
+ let this->b = [];
+ }
+
+ public function sayHello(string name)
+ {
+ echo "Hello " . name;
+ }
+
+ protected function loops()
+ {
+ for a in b {
+ echo a;
+ }
+ loop {
+ return "boo!";
+ }
+ }
+
+} \ No newline at end of file