annotate MoinMoin/parser/text_python.py @ 4443:20747ef82aca

PEP8 trailing whitespace removed
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 02 Jan 2009 23:51:28 +0100
parents 5eb02932f387
children b7ab238032dd
rev   line source
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1 # -*- coding: iso-8859-1 -*-
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
2 """
4382
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
3 MoinMoin - Python Source Parser
4443
20747ef82aca PEP8 trailing whitespace removed
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 4382
diff changeset
4
4382
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
5 DEPRECATED compatibility wrapper calling the highlight parser.
4443
20747ef82aca PEP8 trailing whitespace removed
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 4382
diff changeset
6
4382
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
7 This is to support (deprecated) existing syntax like:
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
8 {{{#!python ...
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
9 ...
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
10 }}}
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
11
4382
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
12 It is equivalent to the new way to highlight code:
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
13 {{{#!highlight python ...
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
14 ...
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
15 }}}
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
16
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
17 @copyright: 2008 MoinMoin:ThomasWaldmann
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
18 @license: GNU GPL, see COPYING for details.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
19 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
20
4382
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
21 from MoinMoin.parser.highlight import Parser as HighlightParser
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
22 from MoinMoin.parser.highlight import Dependencies
2286
01f05e74aa9c Big PEP8 and whitespace cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1920
diff changeset
23
4382
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
24 class Parser(HighlightParser):
5eb02932f387 replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4363
diff changeset
25 parsername = 'python' # Lexer name pygments recognizes
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
26