Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
Fix regexp escape sequences for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Dec 6, 2018
1 parent 62f2228 commit 0e865aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ftplugin/rst_tables.vim
Expand Up @@ -44,7 +44,7 @@ def get_table_bounds():
else:
lower -= 1

match = re.match('^(\s*).*$', vim.current.buffer[upper-1])
match = re.match(r'^(\s*).*$', vim.current.buffer[upper-1])

return (upper, lower, match.group(1))

Expand All @@ -69,7 +69,7 @@ def join_rows(rows, sep='\n'):


def line_is_separator(line):
return re.match('^[\t +=-]+$', line)
return re.match(r'^[\t +=-]+$', line)


def has_line_seps(raw_lines):
Expand Down

0 comments on commit 0e865aa

Please sign in to comment.