Commits

Anonymous committed fe424b9

[svn] Reorder Todo, improve cmdline error reporting.

Comments (0)

Files changed (2)

 for 0.6
 -------
 
-- more setuptools entrypoints (html formatter etc.)
-  see paste script's Commands
-
 - pygmentize presets?
 
 - short cmdline options for common ``-O`` options
 
 - improve guess_lexer heuristics (esp. for template langs)
 
-- more unit tests (pygmentize, all formatters)
-
 - help for ``-O`` and ``-a`` cmdline options
 
 - allow "overlay" token types (e.g. Diff + X) 
 
 - readd property support for C# lexer
 
-- review perl lexer (numerous bugs)
-
-- docstrings?
 
 for 0.7 / later
 ---------------
 - moin parser
 
 - add folding? would require more language-aware parsers...
+
+- more setuptools entrypoints (html formatter etc.)
+  see paste script's Commands
+
+- docstrings?
+
+- more unit tests (pygmentize, all formatters)
+
+- review perl lexer (numerous bugs, but so far no one had complaints ;)
+
+

pygments/__init__.py

     try:
         highlight(code, lexer, fmter, outfile)
     except Exception, err:
-        raise
-        print >>sys.stderr, 'Error while highlighting:', err
+        import traceback
+        print >>sys.stderr, 'Error while highlighting:'
+        print >>sys.stderr, traceback.format_exc(0).splitlines()[-1]
         return 1
     return 0