Back to index

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

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'XML+Ruby'
list aliases = ['xml+erb', 'xml+ruby']
list alias_filenames = ['*.xml']
list mimetypes = ['application/xml+ruby']

Detailed Description

Subclass of `ErbLexer` which highlights data outside preprocessor
directives with the `XmlLexer`.

Definition at line 853 of file templates.py.


Constructor & Destructor Documentation

Definition at line 864 of file templates.py.

00864 
00865     def __init__(self, **options):
00866         super(XmlErbLexer, self).__init__(XmlLexer, ErbLexer, **options)


Member Function Documentation

Definition at line 867 of file templates.py.

00867 
00868     def analyse_text(text):
00869         rv = ErbLexer.analyse_text(text) - 0.01
00870         if looks_like_xml(text):
00871             rv += 0.4
00872         return rv
00873 


Member Data Documentation

Definition at line 861 of file templates.py.

list MoinMoin.support.pygments.lexers.templates.XmlErbLexer.aliases = ['xml+erb', 'xml+ruby'] [static]

Definition at line 860 of file templates.py.

list MoinMoin.support.pygments.lexers.templates.XmlErbLexer.mimetypes = ['application/xml+ruby'] [static]

Definition at line 862 of file templates.py.

Definition at line 859 of file templates.py.


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