Anonymous avatar Anonymous committed a80af9a

[svn] update TODO.

Comments (0)

Files changed (4)

 Todo
 ====
 
+before 0.5
+----------
+
+- add mimetype attributes
+- improve guess_lexer heuristics (esp. for template langs)
+
+- more unit tests
+
+- docstrings?
+
+- goto label HL support for languages that use it
+
+- tell the PHP and DelphiLexer how to differ between Operators and
+  text.
+
+for 0.6
+-------
+
 - allow multiple token types per regex (done, but awkwardly)
 - allow "overlay" token types (e.g. Diff + X) 
   - highlight specials: nth line, a word etc.
   - dhtml: overlays toggleable by javascript
 
-- unit tests
-
-- docstrings?
-
 - lexers:
-    * HTML with special formatting
+    * BASIC
+    * apacheconf
+    * python TBs
+    * haskell
+    * ls -alG
+    * python help() ?
+    * HTML with special formatting?
     * ocaml
     * nemerle
     * scheme/lisp
     * mysql/postgresql/sqlite
     * tcl
     * (la)tex
-    * django templates 
-
-- goto label HL support for languages that use it
 
 - add a `Punctuation` token type for symbols that are not text
   but also not a symbol (blocks in ruby etc)
 
 - add support for function name highlighting to c++ lexer
 
-- styles should be able to define the overall background color
-
-- tell the DelphiLexer how to differ between Operators and
-  text.
+- readd property support for C# lexer
 
 - review perl lexer (numerous bugs)
 
+for 0.7
+-------
+
 - moin parser
 
 - add folding? would require more language-aware parsers...

pygments/lexer.py

 
     def analyse_text(text):
         """
-        Has to return an float between ``0`` and ``1`` that indicates
-        if a lexer wants to highighlight that. used by ``guess_lexer``.
-        If this method returns ``0`` it won't highlight it at all, if
+        Has to return a float between ``0`` and ``1`` that indicates
+        if a lexer wants to highlight this text. Used by ``guess_lexer``.
+        If this method returns ``0`` it won't highlight it in any case, if
         it returns ``1`` highlighting with this lexer is guaranteed.
 
         The `LexerMeta` metaclass automatically wraps this function so

pygments/lexers/__init__.py

 
 
 class _automodule(types.ModuleType):
+    """Automatically import lexers."""
 
     def __getattr__(self, name):
-        """Automatically import lexers."""
         info = LEXERS.get(name)
         if info:
             _load_lexers(info[0])
     pygments.util
     ~~~~~~~~~~~~~
 
-    Utility functions, currently only for parsing lexer
-    and formatter options.
+    Utility functions.
 
     :copyright: 2006 by Georg Brandl.
     :license: GNU LGPL, see LICENSE for more details.
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.