Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Attributes Class Reference
Inheritance diagram for
Inheritance graph
Collaboration diagram for
Collaboration graph

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'Genshi'
list aliases = ['genshi', 'kid', 'xml+genshi', 'xml+kid']
list filenames = ['*.kid']
list alias_filenames = ['*.xml']
list mimetypes = ['application/x-genshi', 'application/x-kid']

Detailed Description

A lexer that highlights `genshi <>`_ and
`kid <>`_ kid XML templates.

Definition at line 763 of file

Constructor & Destructor Documentation

Definition at line 775 of file

00776     def __init__(self, **options):
00777         super(GenshiLexer, self).__init__(XmlLexer, GenshiMarkupLexer,
00778                                           **options)

Member Function Documentation

Definition at line 779 of file

00780     def analyse_text(text):
00781         rv = 0.0
00782         if'\$\{.*?\}', text) is not None:
00783             rv += 0.2
00784         if'py:(.*?)=["\']', text) is not None:
00785             rv += 0.2
00786         return rv + XmlLexer.analyse_text(text) - 0.01

Member Data Documentation

Definition at line 772 of file

list = ['genshi', 'kid', 'xml+genshi', 'xml+kid'] [static]

Definition at line 770 of file

Definition at line 771 of file

list = ['application/x-genshi', 'application/x-kid'] [static]

Definition at line 773 of file

Definition at line 769 of file

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