Back to index

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

List of all members.

Static Public Attributes

string name = 'Gettext Catalog'
list aliases = ['pot', 'po']
list filenames = ['*.pot', '*.po']
list mimetypes = ['application/x-gettext', 'text/x-gettext', 'text/gettext']
dictionary tokens

Detailed Description

Lexer for Gettext catalog files.

*New in Pygments 0.9.*

Definition at line 809 of file text.py.


Member Data Documentation

Definition at line 816 of file text.py.

Definition at line 817 of file text.py.

list MoinMoin.support.pygments.lexers.text.GettextLexer.mimetypes = ['application/x-gettext', 'text/x-gettext', 'text/gettext'] [static]

Definition at line 818 of file text.py.

string MoinMoin.support.pygments.lexers.text.GettextLexer.name = 'Gettext Catalog' [static]

Definition at line 815 of file text.py.

Initial value:
{
        'root': [
            (r'^#,\s.*?$', Keyword.Type),
            (r'^#:\s.*?$', Keyword.Declaration),
            #(r'^#$', Comment),
            (r'^(#|#\.\s|#\|\s|#~\s|#\s).*$', Comment.Single),
            (r'^(")([\w-]*:)(.*")$',
             bygroups(String, Name.Property, String)),
            (r'^".*"$', String),
            (r'^(msgid|msgid_plural|msgstr)(\s+)(".*")$',
             bygroups(Name.Variable, Text, String)),
            (r'^(msgstr\[)(\d)(\])(\s+)(".*")$',
             bygroups(Name.Variable, Number.Integer, Name.Variable, Text, String)),
        ]
    }

Definition at line 820 of file text.py.


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