Back to index

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

List of all members.

Static Public Attributes

dictionary tokens

Detailed Description

Base for the `JspLexer`. Yields `Token.Other` for area outside of
JSP tags.

*New in Pygments 0.7.*

Definition at line 1166 of file templates.py.


Member Data Documentation

Initial value:
{
        'root': [
            (r'<%\S?', Keyword, 'sec'),
            # FIXME: I want to make these keywords but still parse attributes.
            (r'</?jsp:(forward|getProperty|include|plugin|setProperty|useBean).*?>',
             Keyword),
            (r'[^<]+', Other),
            (r'<', Other),
        ],
        'sec': [
            (r'%>', Keyword, '#pop'),
            # note: '\w\W' != '.' without DOTALL.
            (r'[\w\W]+?(?=%>|\Z)', using(JavaLexer)),
        ],
    }

Definition at line 1174 of file templates.py.


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