-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Description
See
Line 149 in d5dfde1
| let l:matchedArg = matchstr(a:hook, a:arg) |
function! s:hookArgs(lines, space, arg, hook, argType, argDescription)
" Hook function signature's args for insert as default value.
if g:jsdoc_custom_args_hook == {}
call add(a:lines, a:space . ' * @' . g:jsdoc_tags['param'] . ' ' . a:arg)
else
let l:matchedArg = matchstr(a:hook, a:arg)
The call to matchstr is called with the first arg being the hook, the second arg as the function parameter
so for the javascript
function myf(isBoolean) {
}it is run against:
matchstr(regexPattern, 'isBoolean')
According to the vim docs, matchstr should be called:
match("testing", "ing")
That is, match('isBoolean', regexPattern)
Metadata
Metadata
Assignees
Labels
No labels