Back to index

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

List of all members.

Static Public Attributes

string name = 'MOOCode'
list filenames = ['*.moo']
list aliases = ['moocode']
list mimetypes = ['text/x-moocode']
dictionary tokens

Detailed Description

For `MOOCode <http://www.moo.mud.org/>`_ (the MOO scripting
language).

*New in Pygments 0.9.*

Definition at line 542 of file other.py.


Member Data Documentation

Definition at line 551 of file other.py.

Definition at line 550 of file other.py.

Definition at line 552 of file other.py.

Definition at line 549 of file other.py.

Initial value:
{
        'root' : [
            # Numbers
            (r'(0|[1-9][0-9_]*)', Number.Integer),
            # Strings
            (r'"(\\\\|\\"|[^"])*"', String),
            # exceptions
            (r'(E_PERM|E_DIV)', Name.Exception),
            # db-refs
            (r'((#[-0-9]+)|(\$[a-z_A-Z0-9]+))', Name.Entity),
            # Keywords
            (r'\b(if|else|elseif|endif|for|endfor|fork|endfork|while'
             r'|endwhile|break|continue|return|try'
             r'|except|endtry|finally|in)\b', Keyword),
            # builtins
            (r'(random|length)', Name.Builtin),
            # special variables
            (r'(player|caller|this|args)', Name.Variable.Instance),
            # skip whitespace
            (r'\s+', Text),
            (r'\n', Text),
            # other operators
            (r'([!;=,{}&\|:\.\[\]@\(\)<>\?]+)', Operator),
            # function call
            (r'([a-z_A-Z0-9]+)(\()', bygroups(Name.Function, Operator)),
            # variables
            (r'([a-zA-Z_0-9]+)', Text),
        ]
    }

Definition at line 554 of file other.py.


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