Back to index

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

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'JavaScript+Genshi Text'
list aliases
list alias_filenames = ['*.js']
list mimetypes

Detailed Description

A lexer that highlights javascript code in genshi text templates.

Definition at line 788 of file templates.py.


Constructor & Destructor Documentation

Definition at line 801 of file templates.py.

00801 
00802     def __init__(self, **options):
00803         super(JavascriptGenshiLexer, self).__init__(JavascriptLexer,
00804                                                     GenshiTextLexer,
00805                                                     **options)


Member Function Documentation

Definition at line 806 of file templates.py.

00806 
00807     def analyse_text(text):
00808         return GenshiLexer.analyse_text(text) - 0.05
00809 


Member Data Documentation

Definition at line 796 of file templates.py.

Initial value:
['js+genshitext', 'js+genshi', 'javascript+genshitext',
               'javascript+genshi']

Definition at line 794 of file templates.py.

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

Definition at line 797 of file templates.py.

Definition at line 793 of file templates.py.


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