@@ -9,12 +9,12 @@ let s:blank_regex = '^\s*$'
9
9
" Spyder, a very popular IDE for python has a template which includes
10
10
" '@author:' ; thus the regex below.
11
11
let s: decorator_regex = ' ^\s*@\(author:\)\@!'
12
- let s: doc_begin_regex = ' ^\s*[uU ]\=\%("""\|'''''' \)'
12
+ let s: doc_begin_regex = ' ^\s*[uUrR ]\=\%("""\|'''''' \)'
13
13
let s: doc_end_regex = ' \%("""\|'''''' \)\s*$'
14
14
" This one is needed for the while loop to count for opening and closing
15
15
" docstrings.
16
16
let s: doc_general_regex = ' \%("""\|'''''' \)'
17
- let s: doc_line_regex = ' ^\s*[uU ]\=\("""\|'''''' \).\+\1\s*$'
17
+ let s: doc_line_regex = ' ^\s*[uUrR ]\=\("""\|'''''' \).\+\1\s*$'
18
18
let s: symbol = matchstr (&fillchars , ' fold:\zs.' ) " handles multibyte characters
19
19
if s: symbol == ' '
20
20
let s: symbol = ' '
@@ -42,7 +42,7 @@ fun! pymode#folding#text() " {{{
42
42
let line = substitute (line , ' \t' , onetab, ' g' )
43
43
44
44
let line = strpart (line , 0 , windowwidth - 2 - len (foldedlinecount))
45
- let line = substitute (line , ' [uU ]\=\%("""\|'''''' \)' , ' ' , ' ' )
45
+ let line = substitute (line , ' [uUrR ]\=\%("""\|'''''' \)' , ' ' , ' ' )
46
46
let fillcharcount = windowwidth - len (line ) - len (foldedlinecount) + 1
47
47
return line . ' ' . repeat (s: symbol , fillcharcount) . ' ' . foldedlinecount
48
48
endfunction " }}}
0 commit comments