Back to index

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

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 <http://www.perl.org>`_ source code.

Definition at line 812 of file agile.py.


Member Function Documentation

Definition at line 978 of file agile.py.

00978 
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!
00985 


Member Data Documentation

Definition at line 818 of file agile.py.

Definition at line 819 of file agile.py.

MoinMoin.support.pygments.lexers.agile.PerlLexer.flags = re.DOTALL|re.MULTILINE [static]

Definition at line 822 of file agile.py.

list MoinMoin.support.pygments.lexers.agile.PerlLexer.mimetypes = ['text/x-perl', 'application/x-perl'] [static]

Definition at line 820 of file agile.py.

Definition at line 817 of file agile.py.

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

Definition at line 824 of file agile.py.


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