Back to index

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

List of all members.

Public Member Functions

def analyse_text

Static Public Attributes

string name = 'INI'
list aliases = ['ini', 'cfg']
list filenames = ['*.ini', '*.cfg', '*.properties']
list mimetypes = ['text/x-ini']
dictionary tokens

Detailed Description

Lexer for configuration files in INI style.

Definition at line 34 of file text.py.


Member Function Documentation

Definition at line 54 of file text.py.

00054 
00055     def analyse_text(text):
00056         npos = text.find('\n')
00057         if npos < 3:
00058             return False
00059         return text[0] == '[' and text[npos-1] == ']'
00060 


Member Data Documentation

Definition at line 40 of file text.py.

list MoinMoin.support.pygments.lexers.text.IniLexer.filenames = ['*.ini', '*.cfg', '*.properties'] [static]

Definition at line 41 of file text.py.

Definition at line 42 of file text.py.

Definition at line 39 of file text.py.

Initial value:
{
        'root': [
            (r'\s+', Text),
            (r'[;#].*?$', Comment),
            (r'\[.*?\]$', Keyword),
            (r'(.*?)([ \t]*)(=)([ \t]*)(.*?)$',
             bygroups(Name.Attribute, Text, Operator, Text, String))
        ]
    }

Definition at line 44 of file text.py.


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