Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removing hanging spaces at end of comments

Lines for function name, whitespace, and params all contained unneeded
trailing spaces at end.
  • Loading branch information...
commit d729d275584afabc0bac638d76d2af1750221462 1 parent dfbb866
@loganlinn loganlinn authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 plugin/php-doc.vim
View
7 plugin/php-doc.vim
@@ -70,6 +70,7 @@ if has ("user_commands")
" After phpDoc standard
let g:pdv_cfg_CommentHead = "/**"
let g:pdv_cfg_Comment1 = " * "
+let g:pdv_cfg_Comment0 = " *"
let g:pdv_cfg_Commentn = " * "
let g:pdv_cfg_CommentTail = " */"
let g:pdv_cfg_CommentSingle = "//"
@@ -276,8 +277,8 @@ func! PhpDocFunc()
let l:txtBOL = g:pdv_cfg_BOL . l:indent
exe l:txtBOL . g:pdv_cfg_CommentHead . g:pdv_cfg_EOL
- exe l:txtBOL . g:pdv_cfg_Comment1 . funcname . " " . g:pdv_cfg_EOL
- exe l:txtBOL . g:pdv_cfg_Commentn . g:pdv_cfg_EOL
+ exe l:txtBOL . g:pdv_cfg_Comment1 . funcname . g:pdv_cfg_EOL
+ exe l:txtBOL . g:pdv_cfg_Comment0 . g:pdv_cfg_EOL
while (l:parameters != ",") && (l:parameters != "")
" Save 1st parameter
@@ -298,7 +299,7 @@ func! PhpDocFunc()
if l:paramtype != ""
let l:paramtype = " " . l:paramtype
endif
- exe l:txtBOL . g:pdv_cfg_Commentn . "@param" . l:paramtype . " $" . l:paramname . " " . g:pdv_cfg_EOL
+ exe l:txtBOL . g:pdv_cfg_Commentn . "@param" . l:paramtype . " $" . l:paramname . g:pdv_cfg_EOL
endwhile
if l:static != ""
Please sign in to comment.
Something went wrong with that request. Please try again.