Back to index

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

List of all members.

Static Public Attributes

 flags = re.MULTILINE|re.DOTALL
string name = 'MXML'
list aliases = ['mxml']
list filenames = ['*.mxml']
list mimetimes = ['text/xml', 'application/xml']
dictionary tokens

Detailed Description

For MXML markup.
Nested AS3 in <script> tags is highlighted by the appropriate lexer.

Definition at line 684 of file web.py.


Member Data Documentation

Definition at line 691 of file web.py.

Definition at line 692 of file web.py.

MoinMoin.support.pygments.lexers.web.MxmlLexer.flags = re.MULTILINE|re.DOTALL [static]

Definition at line 689 of file web.py.

list MoinMoin.support.pygments.lexers.web.MxmlLexer.mimetimes = ['text/xml', 'application/xml'] [static]

Definition at line 693 of file web.py.

Definition at line 690 of file web.py.

Initial value:
{
            'root': [
                ('[^<&]+', Text),
                (r'&\S*?;', Name.Entity),
                (r'(<\!\[CDATA\[)(.*?)(\]\]>)',
                 bygroups(String, using(ActionScript3Lexer), String)),
                ('<!--', Comment, 'comment'),
                (r'<\?.*?\?>', Comment.Preproc),
                ('<![^>]*>', Comment.Preproc),
                (r'<\s*[a-zA-Z0-9:._-]+', Name.Tag, 'tag'),
                (r'<\s*/\s*[a-zA-Z0-9:._-]+\s*>', Name.Tag),
            ],
            'comment': [
                ('[^-]+', Comment),
                ('-->', Comment, '#pop'),
                ('-', Comment),
            ],
            'tag': [
                (r'\s+', Text),
                (r'[a-zA-Z0-9_.:-]+\s*=', Name.Attribute, 'attr'),
                (r'/?\s*>', Name.Tag, '#pop'),
            ],
            'attr': [
                ('\s+', Text),
                ('".*?"', String, '#pop'),
                ("'.*?'", String, '#pop'),
                (r'[^\s>]+', String, '#pop'),
            ],
        }

Definition at line 695 of file web.py.


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