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

@heavenshell
Copy link
Owner

Thx for pull request!
I'll look into it in this week end.
Little bit busy... 😢

@davidosomething
Copy link
Contributor Author

Going to reopen this in a dev branch #51

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.

2 participants