[Python-checkins] python/dist/src/Tools/scripts texcheck.py, 1.6, 1.6.8.1

Fred L. Drake, Jr. fdrake at acm.org
Mon Sep 8 14:47:23 EDT 2003


rhettinger at users.sourceforge.net writes:
 > 	texcheck.py 
 > Log Message:
 > Check for \NULL markup errors and doubled words.
...
 > + nullmarkup = re.compile(r'\NULL(?!\{\})')
...
 > + # Check for bad markup
 > + if nullmarkup.search(line):
 > + print r'Warning, \NULL should be written as \NULL{} on line %d' % (lineno,)
Guess you didn't get my email in time...
This isn't the right check. You only need to check for '\NULL[\s\n]';
the whitespace immediately after \NULL is what causes problems. The
same check should be performed for \ABC, \UNIX, \POSIX, \ASCII, \Cpp,
\C, \EOF, \infinity, and \plusminus (I think that's the complete
list).
 -Fred
-- 
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /