]> granicus.if.org Git - python/commitdiff
Trailing whitespace is bad for .rst files.
authorBrett Cannon <bcannon@gmail.com>
Sat, 3 Jul 2010 21:50:52 +0000 (21:50 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sat, 3 Jul 2010 21:50:52 +0000 (21:50 +0000)
Misc/Vim/vimrc

index fc00b9e5c8aeb16800054b2073d8f427cdeb3981..c398cca69673385ca0a8e6b708cc2ec2c14be4fe 100644 (file)
@@ -43,7 +43,7 @@ highlight BadWhitespace ctermbg=red guibg=red
 " Display tabs at the beginning of a line in Python mode as bad.
 au BufRead,BufNewFile *.py,*.pyw match BadWhitespace /^\t\+/
 " Make trailing whitespace be flagged as bad.
-au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
+au BufRead,BufNewFile *.py,*.pyw,*.c,*.h,*.rst match BadWhitespace /\s\+$/
 
 " Wrap text after a certain number of characters
 " Python: 79