Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Attributes
MoinMoin.support.pygments.lexers.templates.HtmlGenshiLexer Class Reference
Inheritance diagram for MoinMoin.support.pygments.lexers.templates.HtmlGenshiLexer:
Inheritance graph
[legend]
Collaboration diagram for MoinMoin.support.pygments.lexers.templates.HtmlGenshiLexer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'HTML+Genshi'
list aliases = ['html+genshi', 'html+kid']
list alias_filenames = ['*.html', '*.htm', '*.xhtml']
list mimetypes = ['text/html+genshi']

Detailed Description

A lexer that highlights `genshi <http://genshi.edgewall.org/>`_ and
`kid <http://kid-templating.org/>`_ kid HTML templates.

Definition at line 739 of file templates.py.


Constructor & Destructor Documentation

Definition at line 750 of file templates.py.

00750 
00751     def __init__(self, **options):
00752         super(HtmlGenshiLexer, self).__init__(HtmlLexer, GenshiMarkupLexer,
00753                                               **options)


Member Function Documentation

Definition at line 754 of file templates.py.

00754 
00755     def analyse_text(text):
00756         rv = 0.0
00757         if re.search('\$\{.*?\}', text) is not None:
00758             rv += 0.2
00759         if re.search('py:(.*?)=["\']', text) is not None:
00760             rv += 0.2
00761         return rv + HtmlLexer.analyse_text(text) - 0.01
00762 


Member Data Documentation

Definition at line 747 of file templates.py.

list MoinMoin.support.pygments.lexers.templates.HtmlGenshiLexer.aliases = ['html+genshi', 'html+kid'] [static]

Definition at line 746 of file templates.py.

Definition at line 748 of file templates.py.

Definition at line 745 of file templates.py.


The documentation for this class was generated from the following file: