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 = 'Perl'
list aliases = ['perl', 'pl']
list filenames = ['*.pl', '*.pm']
list mimetypes = ['text/x-perl', 'application/x-perl']
 flags = re.DOTALL|re.MULTILINE
dictionary tokens

Detailed Description

For `Perl <>`_ source code.

Definition at line 812 of file

Member Function Documentation

Definition at line 978 of file

00979     def analyse_text(text):
00980         if shebang_matches(text, r'perl(\d\.\d\.\d)?'):
00981             return True
00982         if 'my $' in text:
00983             return 0.9
00984         return 0.1 # who knows, might still be perl!

Member Data Documentation

Definition at line 818 of file

Definition at line 819 of file = re.DOTALL|re.MULTILINE [static]

Definition at line 822 of file

list = ['text/x-perl', 'application/x-perl'] [static]

Definition at line 820 of file

Definition at line 817 of file

Initial value:
        'balanced-regex': [
            (r'/(\\\\|\\/|[^/])*/[egimosx]*', String.Regex, '#pop'),
            (r'!(\\\\|\\!|[^!])*![egimosx]*', String.Regex, '#pop'),
            (r'\\(\\\\|[^\\])*\\[egimosx]*', String.Regex, '#pop'),

Definition at line 824 of file

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