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 = 'Diff'
list aliases = ['diff', 'udiff']
list filenames = ['*.diff', '*.patch']
list mimetypes = ['text/x-diff', 'text/x-patch']
dictionary tokens

Detailed Description

Lexer for unified or context-style diffs or patches.

Definition at line 197 of file

Member Function Documentation

Definition at line 220 of file

00221     def analyse_text(text):
00222         if text[:7] == 'Index: ':
00223             return True
00224         if text[:5] == 'diff ':
00225             return True
00226         if text[:4] == '--- ':
00227             return 0.9

Member Data Documentation

Definition at line 203 of file

list = ['*.diff', '*.patch'] [static]

Definition at line 204 of file

list = ['text/x-diff', 'text/x-patch'] [static]

Definition at line 205 of file

Definition at line 202 of file

Initial value:
        'root': [
            (r' .*\n', Text),
            (r'\+.*\n', Generic.Inserted),
            (r'-.*\n', Generic.Deleted),
            (r'!.*\n', Generic.Strong),
            (r'@.*\n', Generic.Subheading),
            (r'([Ii]ndex|diff).*\n', Generic.Heading),
            (r'=.*\n', Generic.Heading),
            (r'.*\n', Text),

Definition at line 207 of file

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