Commits

Anonymous committed d9d6225

[svn] added missing lexers to pygments docs, svn ignored "*.pyc"

Comments (0)

Files changed (3)

docs/src/lexers.txt

 `DjangoLexer`
 
     Generic `django <http://www.djangoproject.com/documentation/templates/>`_
-    template lexer.
+    and `jinja <http://wsgiarea.pocoo.org/jinja/>`_ template lexer.
 
-    It just highlights django code between the preprocessor directives, other
-    data is left untouched by the lexer.
+    It just highlights django/jinja code between the preprocessor directives,
+    other data is left untouched by the lexer.
 
-    :Aliases:   ``django``
+    :Aliases:   ``django``, ``jinja``
     :Filename patterns: None
 
 
 
     Nested Javascript and CSS is highlighted too.
 
-    :Aliases:   ``html+django``
+    :Aliases:   ``html+django``, ``html+jinja``
     :Filename patterns: None
 
 
     Subclass of the `DjangoLexer` that highlights unlexed data with the
     `XmlLexer`.
 
-    :Aliases:   ``xml+django``
+    :Aliases:   ``xml+django``, ``xml+jinja``
     :Filename patterns: None
 
 
     Subclass of the `DjangoLexer` that highlights unlexed data with the
     `CssLexer`.
 
-    :Aliases:   ``css+django``
+    :Aliases:   ``css+django``, ``css+jinja``
     :Filename patterns: None
 
 
     Subclass of the `DjangoLexer` that highlights unlexed data with the
     `JavascriptLexer`.
 
-    :Aliases:   ``javascript+django``
+    :Aliases:   ``javascript+django``, ``js+django``,
+                ``javascript+jinja``, ``js+jinja``
     :Filename patterns: None
 
 
     :Filename patterns: None
 
 
+`GenshiTextLexer`
+
+    A lexer that highlights `genshi <http://genshi.edgewall.org/>`_ text
+    templates.
+
+    :Aliases:   ``genshitext``
+    :Filename patterns: None
+
+
+`HtmlGenshiLexer`
+
+    A lexer that highlights `genshi <http://genshi.edgewall.org/>`_ and
+    `kid <http://kid-templating.org/>`_ kid HTML templates.
+
+    :Aliases:   ``html+genshi``, ``html+kid``
+    :Filename patterns: None
+
+
+`GenshiLexer`
+
+    A lexer that highlights `genshi <http://genshi.edgewall.org/>`_ and
+    `kid <http://kid-templating.org/>`_ kid XML templates.
+
+    :Aliases:   ``genshi``, ``kid``, ``xml+genshi``, ``xml.kid``
+    :Filename patterns: ``*.kid``
+
+
+`JavascriptGenshiLexer`
+
+    A lexer that highlights javascript code in genshi text templates.
+
+    :Aliases:   ``js+genshitext``, ``js+genshi``, ``javascript+genshitext``,
+                ``javascript+genshi``
+    :Filename patterns: None
+
+
+`CssGenshiLexer`
+
+    A lexer that highlights CSS definitions in genshi text templates.
+
+    :Aliases:   ``css+genshitext``, ``css+genshi``
+    :Filename patterns: None
+
+
 Other languages
 ===============
 

scripts/vim2pygments.py

             for token in tokens:
                 color_map[token] = ' '.join(tmp)
 
-    default_token = color_map.pop('', '')
+    default_token = color_map.pop('')
     return default_token, color_map
 
 
     def __init__(self, code, name):
         self.code = code
         self.name = name.lower()
-        self.styles = {}
 
     def write_header(self, out):
         out.write('# -*- coding: utf-8 -*-\n"""\n')
+#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 import ez_setup
 ez_setup.use_setuptools()