Fix flake8 W605: invalid escape sequence '\{w,d}'

This commit is contained in:
Daniel Hahler
2018-05-10 20:29:50 +02:00
committed by Dave Halter
parent 6781eb17da
commit f07ff6a535

View File

@@ -226,7 +226,7 @@ def completions():
if vim.eval('a:findstart') == '1':
count = 0
for char in reversed(vim.current.line[:column]):
if not re.match('[\w\d]', char):
if not re.match(r'[\w\d]', char):
break
count += 1
vim.command('return %i' % (column - count))