Skip to content

Commit

Permalink
Version 0.1.14
Browse files Browse the repository at this point in the history
New option available for cinoptions : g:DoxygenToolkit_cinoptions (default value is still c1C1)
Thanks to Arnaud GODET for this. Now comment can have different indentation style.
  • Loading branch information
babaybus authored and vim-scripts committed Nov 6, 2010
1 parent f96baf1 commit 0b72d22
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions plugin/DoxygenToolkit.vim
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
" DoxygenToolkit.vim
" Brief: Usefull tools for Doxygen (comment, author, license).
" Version: 0.1.13
" Date: 05/17/04
" Version: 0.1.14
" Date: 11/04/06
" Author: Mathias Lorente
"
" Note: Changes to customize cinoptions
" - New option available for cinoptions : g:DoxygenToolkit_cinoptions
" (default value is still c1C1)
" Thanks to Arnaud GODET for this. Now comment can have the following
" look:
" /** /**
" * and not only *
" */ */
" Note: Changes for linux kernel comment style
" - New option are available for brief tag and parameter tag ! Now there is
" a pre and a post tag for each of these tag.
Expand Down Expand Up @@ -201,6 +209,9 @@ if !exists("g:DoxygenToolkit_classTag")
let g:DoxygenToolkit_classTag = "@class "
endif

if !exists("g:DoxygenToolkit_cinoptions")
let g:DoxygenToolkit_cinoptions = "c1C1"
endif
if !exists("g:DoxygenToolkit_startCommentTag ")
let g:DoxygenToolkit_startCommentTag = "/** "
endif
Expand Down Expand Up @@ -237,7 +248,7 @@ function! <SID>DoxygenCommentFunc()
" Store indentation
let l:oldcinoptions = &cinoptions
" Set new indentation
let &cinoptions="c1C1"
let &cinoptions=g:DoxygenToolkit_cinoptions

let l:argBegin = "\("
let l:argEnd = "\)"
Expand Down Expand Up @@ -456,7 +467,7 @@ function! <SID>DoxygenLicenseFunc()
" Store indentation
let l:oldcinoptions = &cinoptions
" Set new indentation
let &cinoptions="c1C1"
let &cinoptions=g:DoxygenToolkit_cinoptions

" Test authorName variable
if !exists("g:DoxygenToolkit_authorName")
Expand Down Expand Up @@ -486,7 +497,7 @@ function! <SID>DoxygenAuthorFunc()
" Store indentation
let l:oldcinoptions = &cinoptions
" Set new indentation
let &cinoptions="c1C1"
let &cinoptions=g:DoxygenToolkit_cinoptions

" Test authorName variable
if !exists("g:DoxygenToolkit_authorName")
Expand Down Expand Up @@ -555,7 +566,7 @@ function! <SID>DoxygenBlockFunc()
" Store indentation
let l:oldcinoptions = &cinoptions
" Set new indentation
let &cinoptions="c1C1"
let &cinoptions=g:DoxygenToolkit_cinoptions

exec "normal o" . g:DoxygenToolkit_startCommentTag
exec "normal o" . g:DoxygenToolkit_interCommentTag . g:DoxygenToolkit_blockTag
Expand Down

0 comments on commit 0b72d22

Please sign in to comment.