Back to index

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

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'XML+Smarty'
list aliases = ['xml+smarty']
list alias_filenames = ['*.xml', '*.tpl']
list mimetypes = ['application/xml+smarty']

Detailed Description

Subclass of the `SmartyLexer` that highlights unlexed data with the
`XmlLexer`.

Definition at line 1019 of file templates.py.


Constructor & Destructor Documentation

Definition at line 1030 of file templates.py.

01030 
01031     def __init__(self, **options):
01032         super(XmlSmartyLexer, self).__init__(XmlLexer, SmartyLexer, **options)


Member Function Documentation

Definition at line 1033 of file templates.py.

01033 
01034     def analyse_text(text):
01035         rv = SmartyLexer.analyse_text(text) - 0.01
01036         if looks_like_xml(text):
01037             rv += 0.4
01038         return rv
01039 


Member Data Documentation

Definition at line 1027 of file templates.py.

Definition at line 1026 of file templates.py.

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

Definition at line 1028 of file templates.py.

Definition at line 1025 of file templates.py.


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