vim doc: fix constructor names in generated doc
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 20 Aug 2015 15:35:15 +0000 (11:35 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 20 Aug 2015 15:46:27 +0000 (11:46 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/doc/vim_autocomplete.nit

index 290ed9d..c16b4fc 100644 (file)
@@ -207,8 +207,11 @@ redef class MClassType
                                else stream.write "~ " # protected_visibility
 
                                if prop isa MMethod then
-                                       if prop.is_init and prop.name != "init" then stream.write "init "
-                                       if prop.is_new and prop.name != "new" then stream.write "new "
+                                       if prop.is_new and prop.name != "new" then
+                                               stream.write "new "
+                                       else if prop.is_init and prop.name != "init" then
+                                               stream.write "init "
+                                       end
                                end
 
                                stream.write prop.name