summaryrefslogtreecommitdiff
path: root/pycco/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'pycco/main.py')
-rw-r--r--pycco/main.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pycco/main.py b/pycco/main.py
index c9a3612..22f889a 100644
--- a/pycco/main.py
+++ b/pycco/main.py
@@ -64,6 +64,7 @@ def parse(code, language):
Given a string of source code, parse out each comment and the code that
follows it, and create an individual **section** for it.
Sections take the form:
+
{ "docs_text": ...,
"docs_html": ...,
"code_text": ...,
@@ -252,6 +253,8 @@ def highlight(sections, language, preserve_paths=True, outdir=None):
outdir=outdir))
section["num"] = i
+ return sections
+
# === HTML Code generation ===