# HG changeset patch # User Steve Losh # Date 1289518058 18000 # Node ID 80e8bc166d003af6e0805faa82508df1fdef9ecb # Parent 1298f3a2df5bce708a0878efdffb961eeb2f48b1 vim: highlight python docstrings diff -r 1298f3a2df5b -r 80e8bc166d00 vim/syntax/python.vim --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vim/syntax/python.vim Thu Nov 11 18:27:38 2010 -0500 @@ -0,0 +1,7 @@ +syn match pythonBlock ":$" nextgroup=pythonDocString skipempty skipwhite +syn region pythonDocString matchgroup=Normal start=+[uU]\='+ end=+'+ skip=+\\\\\|\\'+ contains=pythonEscape,@Spell contained +syn region pythonDocString matchgroup=Normal start=+[uU]\="+ end=+"+ skip=+\\\\\|\\"+ contains=pythonEscape,@Spell contained +syn region pythonDocString matchgroup=Normal start=+[uU]\="""+ end=+"""+ contains=pythonEscape,@Spell contained +syn region pythonDocString matchgroup=Normal start=+[uU]\='''+ end=+'''+ contains=pythonEscape,@Spell contained +hi def link pythonDocString Comment +