diff options
| author | Victor Adam <victor.adam@cofelyineo-gdfsuez.com> | 2015-08-11 10:07:18 +0200 | 
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2015-08-31 02:54:39 -0400 | 
| commit | 6e233b93ea03c67b80658a964d9a1a134792a9bd (patch) | |
| tree | a13ef6a556bd4b8ef44b48b63f85798e86226e67 | |
| parent | 9bc1b78058911b538166e3fe658ea86fe10da213 (diff) | |
| download | rneovim-6e233b93ea03c67b80658a964d9a1a134792a9bd.tar.gz rneovim-6e233b93ea03c67b80658a964d9a1a134792a9bd.tar.bz2 rneovim-6e233b93ea03c67b80658a964d9a1a134792a9bd.zip | |
runtime: fix for python highlighting #3154
"""\"""" was highlighted incorrectly. The fix is simply adding skip=+\\["']+ to
the syntax of triple-quoted strings.
Closes #3151
| -rw-r--r-- | runtime/syntax/python.vim | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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" | 
