Skip to content

Conversation

@davidosomething
Copy link
Contributor

  • ADDED g:jsdoc_custom_args_regex_only config boolean
  • ADDED support for matching against full regexes
  • ADDED documentation

E.g. for

function myfunc(_isPrivateBoolean, isanother) {
}

the settings:

let g:jsdoc_custom_args_regex_only = 1
let g:jsdoc_custom_args_hook = {
                      \   '^_\?is': {
                      \     'type': '{Boolean}'
                      \   },
}

will yield

/**
 * @param {Boolean} _isPrivateBoolean
 * @param {Boolean} isanother
 */
function myfunc(_isPrivateBoolean, isanother) {
}

addresses #47 in a backwards compatible manner

REOPENED in separate branch from #49

@davidosomething davidosomething changed the title fix unbalanced parens Full regex mode for jsdoc_custom_args_hook (reopened) Jan 18, 2016
@heavenshell
Copy link
Owner

@davidosomething
LGTM.
Could you squash #49 and this pull request?
Then I'll merge it.

@davidosomething
Copy link
Contributor Author

done!

@ryanoasis
Copy link
Contributor

@davidosomething Pretty sweet! Thanks!

@heavenshell heavenshell merged commit 3582247 into heavenshell:master Jan 22, 2016
@heavenshell
Copy link
Owner

@davidosomething
Merged.
Thanks 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants