Closed IonicaBizau closed 9 years ago
Thx for PR. I'll check it later.
@IonicaBizau I've got following result.
/**
* foo
*
* @param {} bar
* @param {} baz
* @param {Function}callback The callback function.
*/
function foo(bar, baz, callback) {
}
At * @param {Function}callback The callback function.
,
@param
and {Function}
has two spaces and no space between {Function}
and callback
.
let g:jsdoc_allow_input_prompt = 1
let g:jsdoc_custom_args_hook = {
\ 'callback\|cb': {
\ 'type': '{Function}',
\ 'description': 'The callback function.'
\ },
\ 'progress': {
\ 'type': '{Function}',
\ 'description': 'The progress function.'
\ }
\}
Could you fix this?
@heavenshell Reproduced. Could give me a hint where is this handled?
This line.
Your PR changes to {type} argname
, so you need add space after {type}
.
Cheers :smile:
@heavenshell Fixed. :smile: Thanks!
:tada: My first contribution to a vim plugin! :fireworks:
Merged. thx for your contribution! Now you can write Vim script :smile:
@IonicaBizau Awesome. Welcome to the dark side :smiling_imp: :+1:
@ryanoasis :smile_cat: That was fun! I realize that VIM lang is pretty much intuitive. I have no experience in writing such code, but looking at the other snippets in the file I was kind of easy to fix this. :smile:
Fixes #28. Please check if it's fine. Thanks! :smile: