diff options
author | Gusakov Nikita <dev@nkt.me> | 2014-02-16 21:09:40 +0400 |
---|---|---|
committer | Gusakov Nikita <dev@nkt.me> | 2014-02-16 21:09:40 +0400 |
commit | c185cdf3bee199db573c436723b366b1803c4980 (patch) | |
tree | b94f815bacbe98e8bc366269352295a57ab74e42 /tests | |
parent | 76a3e173102b440ae5566be2fb01507ad1c423cc (diff) | |
download | pygments-c185cdf3bee199db573c436723b366b1803c4980.tar.gz |
Add zephir lexer and test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examplefiles/test.zep | 33 |
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 |