tests: error_syntax errors on `? now
[nit.git] / contrib / neo_doxygen / src / doxml / language_specific.nit
index 10757ea..9566f9e 100644 (file)
@@ -131,7 +131,6 @@ abstract class SourceLanguage
 
                var content = text_array.last.as(String).r_trim
                var link = text.links.first
-               var found = false
 
                if link == null and content.has_suffix(suffix) then
                        content = content.substring(0, content.length - suffix.length).r_trim
@@ -180,3 +179,14 @@ class JavaSource
                super
        end
 end
+
+# Importation logics for Python.
+class PythonSource
+       super SourceLanguage
+
+       redef fun apply_member_type(member, type_text) do
+               # Doxygen may forgot to remove the `def` keyword on methods.
+               extract_keyword(type_text, "def")
+               super
+       end
+end