Back to index

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

List of all members.

Static Public Attributes

string name = 'Befunge'
list aliases = ['befunge']
list filenames = ['*.befunge']
list mimetypes = ['application/x-befunge']
dictionary tokens

Detailed Description

Lexer for the esoteric `Befunge <http://en.wikipedia.org/wiki/Befunge>`_
language.

*New in Pygments 0.7.*

Definition at line 291 of file other.py.


Member Data Documentation

Definition at line 299 of file other.py.

Definition at line 300 of file other.py.

list MoinMoin.support.pygments.lexers.other.BefungeLexer.mimetypes = ['application/x-befunge'] [static]

Definition at line 301 of file other.py.

Definition at line 298 of file other.py.

Initial value:
{
        'root': [
            (r'[0-9a-f]', Number),
            (r'[\+\*/%!`-]', Operator), # Traditional math
            (r'[<>^v?\[\]rxjk]', Name.Variable), # Move, imperatives
            (r'[:\\$.,n]', Name.Builtin), # Stack ops, imperatives
            (r'[|_mw]', Keyword),
            (r'[{}]', Name.Tag), # Befunge-98 stack ops
            (r'".*?"', String.Double), # Strings don't appear to allow escapes
            (r'\'.', String.Single), # Single character
            (r'[#;]', Comment), # Trampoline... depends on direction hit
            (r'[pg&~=@iotsy]', Keyword), # Misc
            (r'[()A-Z]', Comment), # Fingerprints
            (r'\s+', Text), # Whitespace doesn't matter
        ],
    }

Definition at line 303 of file other.py.


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