Skip to content

Commit 3b54f6b

Browse files
author
Anton Parkhomenko
committed
Docstring syntax
1 parent ba984dd commit 3b54f6b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

syntax/python.vim

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,13 @@ call pymode#Default('g:pymode_syntax_all', 1)
177177
syn region pythonDocTest2 start="^\s*>>>" end=+"""+he=s-1 end="^\s*$" contained
178178
endif
179179

180+
" DocStrings
181+
if !pymode#Default('g:pymode_syntax_docstrings', g:pymode_syntax_all) || g:pymode_syntax_docstrings
182+
syn region pythonDocstring start=+^\s*[uU]\?[rR]\?"""+ end=+"""+ keepend excludenl contains=pythonEscape,@Spell,pythonDoctest,pythonDocTest2,pythonSpaceError
183+
syn region pythonDocstring start=+^\s*[uU]\?[rR]\?'''+ end=+'''+ keepend excludenl contains=pythonEscape,@Spell,pythonDoctest,pythonDocTest2,pythonSpaceError
184+
endif
185+
186+
180187
" }}}
181188

182189
" Numbers {{{

0 commit comments

Comments
 (0)