This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snippet fun "function with dynamic docblock" b | |
`!p | |
# Currently Ultisnips does not support dynamic tabstops, so we cannot add | |
# tabstops to the datatype for these param tags until that feature is added. | |
def formatTag(argument): | |
return " * @param {{}} {0}".format(argument) | |
tags = [formatTag(argument.strip()) for argument in t[2].split(',') if argument] | |
if tags: |