Back to index

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

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'ANTLR With Python Target'
list aliases = ['antlr-python']
list filenames = ['*.G', '*.g']

Detailed Description

`ANTLR`_ with Python Target

*New in Pygments 1.1.*

Definition at line 600 of file parsers.py.


Constructor & Destructor Documentation

Definition at line 611 of file parsers.py.

00611 
00612     def __init__(self, **options):
00613         super(AntlrPythonLexer, self).__init__(PythonLexer, AntlrLexer,
00614                                                **options)


Member Function Documentation

Definition at line 615 of file parsers.py.

00615 
00616     def analyse_text(text):
00617         return AntlrLexer.analyse_text(text) and \
00618                re.search(r'^\s*language\s*=\s*Python\s*;', text, re.M)
00619 


Member Data Documentation

Definition at line 608 of file parsers.py.

Definition at line 609 of file parsers.py.

string MoinMoin.support.pygments.lexers.parsers.AntlrPythonLexer.name = 'ANTLR With Python Target' [static]

Definition at line 607 of file parsers.py.


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