Skip to content

Instantly share code, notes, and snippets.

View arusahni's full-sized avatar

Aru Sahni arusahni

View GitHub Profile
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: