80e8bc166d00

vim: highlight python docstrings
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 11 Nov 2010 18:27:38 -0500
parents 1298f3a2df5b
children e0f13b88e80e a0a2843a7d29
branches/tags (none)
files vim/syntax/python.vim

Changes

--- /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
+