python bugfix and svn cleanup

--HG--
branch : pmacs2
This commit is contained in:
moculus 2009-05-05 00:33:49 +00:00
parent affd8f13f4
commit a937b50d1b
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ class SvnStatus(Method):
class SvnLog(Method):
'''display the SVN log for the current file'''
sep_re = re.compile('^-+$')
log_re = re.compile('^(.+?) \| (.+?) \| (.{25}) .+? \| (.+)$')
log_re = re.compile(r'^(.+?) \| (.+?) \| (.{25}) .+? \| (.+)$')
def _build_entry(self, log_line, mesg_lines):
log_data = '[c:d:*]%s [g:d:*]%s [b:d:*]%s [c:d:*]%s' % log_line
mesg_data = '\n'.join(mesg_lines).strip()

View File

@ -50,7 +50,7 @@ class PythonGrammar(Grammar):
PatternRule('python.system_identifier', '__[a-zA-Z0-9_]+__'),
PatternRule('python.private_identifier', '__[a-zA-Z0-9_]*'),
PatternRule('python.hidden_identifier', '_[a-zA-Z0-9_]*'),
PatternRule('python.identifier', '[a-zA-Z_][a-zA-Z0-9_]*'),
PatternRule('python.identifier', '[a-zA-Z_][a-zA-Z0-9_]*(?![a-zA-Z0-9_\'"])'),
RegionRule('rawstring', 'r"""', StringGrammar4, '"""'),
RegionRule('rawstring', "r'''", StringGrammar3, "'''"),