neo_doxygen: Add an option to remove the `def` keyword of Python.
[nit.git] / contrib / neo_doxygen / src / neo_doxygen.nit
index 48bb5ad..431809c 100644 (file)
@@ -22,7 +22,6 @@ import model
 import doxml
 import graph_store
 import console
-import flush_stdout
 import opts
 
 # An importation task.
@@ -60,7 +59,6 @@ class NeoDoxygenJob
                else
                        printn "Reading {dir}... "
                end
-               flush_stdout
                loop
                        for f in list_files(dir) do
                                var path = dir/f
@@ -81,7 +79,6 @@ class NeoDoxygenJob
                else
                        print "{file_count} files read."
                end
-               flush_stdout
        end
 
        # List files in a directory.
@@ -107,7 +104,6 @@ class NeoDoxygenJob
        # Save the graph.
        fun save do
                sys.stdout.write "Linking nodes...{term_save_cursor} "
-               flush_stdout
                model.put_edges
                print "{term_rewind} Done."
                var nodes = model.all_nodes
@@ -153,6 +149,7 @@ class NeoDoxygenCommand
        init do
                sources["any"] = new DefaultSource
                sources["java"] = new JavaSource
+               sources["python"] = new PythonSource
 
                var prefix = new OptionText("""
 {{{"NAME".bold}}}
@@ -189,7 +186,7 @@ class NeoDoxygenCommand
 
                var keys = new Array[String].from(sources.keys)
                opt_src_lang = new OptionEnum(keys,
-                               "The programming language to assume when processing chunk in the declarations left as-is by Doxygen. Use `any` (the default) to disable any language-specific processing.",
+                               "The programming language to assume when processing chunks in the declarations left as-is by Doxygen. Use `any` (the default) to disable any language-specific processing.",
                                keys.index_of("any"), "--src-lang")
                option_context.add_option(opt_src_lang)
        end
@@ -253,8 +250,8 @@ end
 
 # Add handling of multi-line descriptions.
 #
-# Note: The algorithm is naive and do not handle internationalisation and
-# escape sequences.
+# Note: The algorithm is naive and do not handle internationalisation,
+# multi-byte characters and control characters.
 redef class Option
 
        redef fun pretty(off) do