Back to index

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

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'JavaScript+Ruby'
list aliases = ['js+erb', 'javascript+erb', 'js+ruby', 'javascript+ruby']
list alias_filenames = ['*.js']
list mimetypes

Detailed Description

Subclass of `ErbLexer` which highlights unlexed data with the
`JavascriptLexer`.

Definition at line 891 of file templates.py.


Constructor & Destructor Documentation

Definition at line 904 of file templates.py.

00904 
00905     def __init__(self, **options):
00906         super(JavascriptErbLexer, self).__init__(JavascriptLexer, ErbLexer,
00907                                                  **options)


Member Function Documentation

Definition at line 908 of file templates.py.

00908 
00909     def analyse_text(text):
00910         return ErbLexer.analyse_text(text) - 0.05
00911 


Member Data Documentation

Definition at line 899 of file templates.py.

list MoinMoin.support.pygments.lexers.templates.JavascriptErbLexer.aliases = ['js+erb', 'javascript+erb', 'js+ruby', 'javascript+ruby'] [static]

Definition at line 898 of file templates.py.

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

Definition at line 900 of file templates.py.

Definition at line 897 of file templates.py.


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