Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Attributes Class Reference
Inheritance diagram for
Inheritance graph
Collaboration diagram for
Collaboration graph

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

Constructor & Destructor Documentation

Definition at line 1202 of file

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

Member Function Documentation

Definition at line 1205 of file

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

Member Data Documentation

Definition at line 1198 of file

Definition at line 1199 of file

Definition at line 1200 of file

string = 'Java Server Page' [static]

Definition at line 1197 of file

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