Back to index

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

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'Java Server Page'
list aliases = ['jsp']
list filenames = ['*.jsp']
list mimetypes = ['application/x-jsp']

Detailed Description

Lexer for Java Server Pages.

*New in Pygments 0.7.*

Definition at line 1191 of file templates.py.


Constructor & Destructor Documentation

Definition at line 1202 of file templates.py.

01202 
01203     def __init__(self, **options):
01204         super(JspLexer, self).__init__(XmlLexer, JspRootLexer, **options)


Member Function Documentation

Definition at line 1205 of file templates.py.

01205 
01206     def analyse_text(text):
01207         rv = JavaLexer.analyse_text(text) - 0.01
01208         if looks_like_xml(text):
01209             rv += 0.4
01210         if '<%' in text and '%>' in text:
01211             rv += 0.1
01212         return rv
01213 


Member Data Documentation

Definition at line 1198 of file templates.py.

Definition at line 1199 of file templates.py.

Definition at line 1200 of file templates.py.

string MoinMoin.support.pygments.lexers.templates.JspLexer.name = 'Java Server Page' [static]

Definition at line 1197 of file templates.py.


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