Back to index

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

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'JavaScript+Smarty'
list aliases = ['js+smarty', 'javascript+smarty']
list alias_filenames = ['*.js', '*.tpl']
list mimetypes

Detailed Description

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

Definition at line 1058 of file templates.py.


Constructor & Destructor Documentation

Definition at line 1071 of file templates.py.

01071 
01072     def __init__(self, **options):
01073         super(JavascriptSmartyLexer, self).__init__(JavascriptLexer, SmartyLexer,
01074                                                     **options)


Member Function Documentation

Definition at line 1075 of file templates.py.

01075 
01076     def analyse_text(text):
01077         return SmartyLexer.analyse_text(text) - 0.05
01078 


Member Data Documentation

Definition at line 1066 of file templates.py.

list MoinMoin.support.pygments.lexers.templates.JavascriptSmartyLexer.aliases = ['js+smarty', 'javascript+smarty'] [static]

Definition at line 1065 of file templates.py.

Initial value:
['application/x-javascript+smarty',
                 'text/x-javascript+smarty',
                 'text/javascript+smarty']

Definition at line 1067 of file templates.py.

Definition at line 1064 of file templates.py.


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