comparison MoinMoin/parser/_ParserBase.py @ 4384:09328e4aab45

deprecate ParserBase syntax highlighter
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 12 Oct 2008 00:59:13 +0200
parents 817d99d715fe
children fc47ff90b96f
comparison
equal deleted inserted replaced
4383:e25b00b3a308 4384:09328e4aab45
23 pre.codearea span.ConsWord { color: #008080; font-weight: bold; } 23 pre.codearea span.ConsWord { color: #008080; font-weight: bold; }
24 24
25 """ 25 """
26 26
27 import re 27 import re
28
29 from MoinMoin import log
30 logging = log.getLogger(__name__)
28 31
29 from MoinMoin import config, wikiutil 32 from MoinMoin import config, wikiutil
30 from MoinMoin.support.python_compatibility import hash_new 33 from MoinMoin.support.python_compatibility import hash_new
31 34
32 class FormatTextBase: 35 class FormatTextBase:
150 nums = -1 153 nums = -1
151 return nums, start, step, attrs 154 return nums, start, step, attrs
152 155
153 156
154 class ParserBase: 157 class ParserBase:
158 """ DEPRECATED highlighting parser - please use/extend pygments library """
159 logging.warning('Using ParserBase is deprecated - please use/extend pygments syntax highlighting library.')
155 160
156 parsername = 'ParserBase' 161 parsername = 'ParserBase'
157 tabwidth = 4 162 tabwidth = 4
158 163
159 # for dirty tricks, see comment in format(): 164 # for dirty tricks, see comment in format():