Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Attributes Class Reference
Inheritance diagram for
Inheritance graph
Collaboration diagram for
Collaboration graph

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

Member Function Documentation

Definition at line 54 of file

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] == ']'

Member Data Documentation

Definition at line 40 of file

list = ['*.ini', '*.cfg', '*.properties'] [static]

Definition at line 41 of file

Definition at line 42 of file

Definition at line 39 of file

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

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