Skip to content

Commit bb0dbdb

Browse files
committed
fix extend broke s:VimlParser
1 parent 64653fb commit bb0dbdb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

autoload/vimlparser.vim

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
"
44
" See https://github.com/vim-jp/vital.vim for vital module.
55

6-
let s:VimLParser = vital#vimlparser#import('VimlParser')
7-
8-
call extend(s:, s:VimLParser.import())
6+
let s:VimLParser = vital#vimlparser#import('VimlParser').import()
97

108
" To Vim plugin developer who want to depend on vim-vimlparser:
119
" Please use vimlparser as vital-module instead of this autoload function.
1210
" We do not ensure that future changes are backward compatible.
1311
function! vimlparser#import()
14-
return s:VimLParser.import()
12+
return s:VimLParser
1513
endfunction
1614

1715
" @brief Read input as VimScript and return stringified AST.

0 commit comments

Comments
 (0)