Mercurial > moin > 1.9
view MoinMoin/parser/text_diff.py @ 4383:e25b00b3a308
replace the diff parser by a thin wrapper around the highlight parser (to keep syntax like {{{#!diff ... working)
author | Thomas Waldmann <tw AT waldmann-edv DOT de> |
---|---|
date | Sun, 12 Oct 2008 00:26:49 +0200 |
parents | 5638ffa2fb38 |
children | 20747ef82aca |
line wrap: on
line source
# -*- coding: iso-8859-1 -*- """ MoinMoin - diff/patch Parser DEPRECATED compatibility wrapper calling the highlight parser. This is to support (deprecated) existing syntax like: {{{#!diff ... ... }}} It is equivalent to the new way to highlight code: {{{#!highlight diff ... ... }}} @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 = 'diff' # Lexer name pygments recognizes