view MoinMoin/parser/ @ 4382:5eb02932f387

replace the python/pascal/java/cpp parser by a thin wrapper around the highlight parser (to keep syntax like {{{#python ... working)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 11 Oct 2008 23:54:29 +0200
parents 348c9b6e0033
children 20747ef82aca
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
    MoinMoin - Java Source Parser
    DEPRECATED compatibility wrapper calling the highlight parser.
    This is to support (deprecated) existing syntax like:
    {{{#!java ...

    It is equivalent to the new way to highlight code:
    {{{#!highlight java ...

    @copyright: 2008 MoinMoin:ThomasWaldmann
    @license: GNU GPL, see COPYING for details.

from MoinMoin.parser.highlight import Parser as HighlightParser
from MoinMoin.parser.highlight import Dependencies

class Parser(HighlightParser):
    parsername = 'java'  # Lexer name pygments recognizes