[geany/geany] 4e0193: Zephir: add some tag parser tests

Colomban Wendling git-noreply at xxxxx
Fri Apr 10 15:06:49 UTC 2015


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Thu, 15 May 2014 16:08:25 UTC
Commit:      4e0193d8f14ece47fa30ce7239e4e49c482f457b
             https://github.com/geany/geany/commit/4e0193d8f14ece47fa30ce7239e4e49c482f457b

Log Message:
-----------
Zephir: add some tag parser tests


Modified Paths:
--------------
    tests/ctags/Makefile.am
    tests/ctags/return-hint.zep
    tests/ctags/return-hint.zep.tags
    tests/ctags/simple.zep
    tests/ctags/simple.zep.tags

Modified: tests/ctags/Makefile.am
2 lines changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -212,6 +212,7 @@ test_sources = \
 	recursive.f95					\
 	refcurs.sql						\
 	regexp.js						\
+	return-hint.zep					\
 	secondary_fcn_name.js			\
 	semicolon.f90					\
 	shebang.js						\
@@ -229,6 +230,7 @@ test_sources = \
 	simple.rb						\
 	simple.sh						\
 	simple.tcl						\
+	simple.zep						\
 	spurious_label_tags.c			\
 	sql_single_quote.sql			\
 	square_parens.f90				\


Modified: tests/ctags/return-hint.zep
14 lines changed, 14 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,14 @@
+class Test
+{
+    public function first(string str) -> string
+    {
+        function nested() {
+            
+        }
+    }
+    
+    public function second(int i) -> int
+    {
+        
+    }
+}


Modified: tests/ctags/return-hint.zep.tags
5 lines changed, 5 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,5 @@
+# format=tagmanager
+Test�1�0
+first�16�(string str)�Test�0
+nested�16�()�Test::first�0
+second�16�(int i)�Test�0


Modified: tests/ctags/simple.zep
19 lines changed, 19 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,19 @@
+/* from http://zephir-lang.com/language.html */
+namespace Test;
+
+class MyClass
+{
+
+    public function someMethod1()
+    {
+        int a = 1, b = 2;
+        return a + b;
+    }
+
+    public function someMethod2()
+    {
+        int a = 3, b = 4;
+        return a + b;
+    }
+
+}


Modified: tests/ctags/simple.zep.tags
5 lines changed, 5 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,5 @@
+# format=tagmanager
+MyClass�1�Test�0
+Test�256�0
+someMethod1�16�()�Test::MyClass�0
+someMethod2�16�()�Test::MyClass�0



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list