From 6e233b93ea03c67b80658a964d9a1a134792a9bd Mon Sep 17 00:00:00 2001 From: Victor Adam Date: Tue, 11 Aug 2015 10:07:18 +0200 Subject: runtime: fix for python highlighting #3154 """\"""" was highlighted incorrectly. The fix is simply adding skip=+\\["']+ to the syntax of triple-quoted strings. Closes #3151 --- runtime/syntax/python.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/syntax') diff --git a/runtime/syntax/python.vim b/runtime/syntax/python.vim index a4ffcd4240..d2162dee5a 100644 --- a/runtime/syntax/python.vim +++ b/runtime/syntax/python.vim @@ -99,7 +99,7 @@ syn region pythonString \ start=+[uU]\=\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1" \ contains=pythonEscape,@Spell syn region pythonString - \ start=+[uU]\=\z('''\|"""\)+ end="\z1" keepend + \ start=+[uU]\=\z('''\|"""\)+ skip=+\\["']+ end="\z1" keepend \ contains=pythonEscape,pythonSpaceError,pythonDoctest,@Spell syn region pythonRawString \ start=+[uU]\=[rR]\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1" -- cgit