We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 377b6cd commit 4a54801Copy full SHA for 4a54801
autoload/vimlparser.vim
@@ -1226,7 +1226,8 @@ function! s:VimLParser.parse_cmd_function()
1226
1227
if left.type == s:NODE_IDENTIFIER
1228
let s = left.value
1229
- if s[0] !=# '<' && !s:isupper(s[0]) && stridx(s, ':') == -1 && stridx(s, '#') == -1
+ let ss = split(s, '\zs')
1230
+ if ss[0] !=# '<' && !s:isupper(ss[0]) && stridx(s, ':') == -1 && stridx(s, '#') == -1
1231
throw s:Err(printf('E128: Function name must start with a capital or contain a colon: %s', s), left.pos)
1232
endif
1233
0 commit comments