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
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.