Skip to content

Commit d533db6

Browse files
Mathias Lorentevim-scripts
authored andcommitted
Version 0.1.12
Now you can use your own comment tag (not only C or C++). In this case, you have to define: 'g:DoxygenToolkit_startCommentTag', 'g:DoxygenToolkit_interCommentTag' and 'g:DoxygenToolkit_endCommentTag' in your .vimrc file.
1 parent f60c62f commit d533db6

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

plugin/DoxygenToolkit.vim

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,24 @@ endif
177177
if !exists("g:DoxygenToolkit_classTag")
178178
let g:DoxygenToolkit_classTag = "@class "
179179
endif
180-
let g:DoxygenToolkit_startCommentTag = "/** "
181-
let g:DoxygenToolkit_interCommentTag = "* "
182-
let g:DoxygenToolkit_endCommentTag = "*/"
180+
181+
if !exists("g:DoxygenToolkit_startCommentTag ")
182+
let g:DoxygenToolkit_startCommentTag = "/** "
183+
endif
184+
if !exists("g:DoxygenToolkit_interCommentTag ")
185+
let g:DoxygenToolkit_interCommentTag = "* "
186+
endif
187+
if !exists("g:DoxygenToolkit_endCommentTag ")
188+
let g:DoxygenToolkit_endCommentTag = "*/"
189+
endif
183190
if exists("g:DoxygenToolkit_commentType")
184191
if ( g:DoxygenToolkit_commentType == "C++" )
185192
let g:DoxygenToolkit_startCommentTag = "/// "
186193
let g:DoxygenToolkit_interCommentTag = "/// "
187194
let g:DoxygenToolkit_endCommentTag = ""
188195
endif
189196
endif
197+
190198
if !exists("g:DoxygenToolkit_ignoreForReturn")
191199
let g:DoxygenToolkit_ignoreForReturn = "inline static virtual void"
192200
else

0 commit comments

Comments
 (0)