Skip to content

Commit af75161

Browse files
committed
changed default argument handling in .vim file, because the generator couldn't handle a:0 etc. then generated the .js and .py files.
1 parent 94f248e commit af75161

File tree

3 files changed

+47
-63
lines changed

3 files changed

+47
-63
lines changed

autoload/vimlparser.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ function! s:VimLParser.new(...)
415415
endfunction
416416

417417
function! s:VimLParser.__init__(...)
418-
if a:0 > 0
419-
let self.neovim = a:1
418+
if len(a:000) > 0
419+
let self.neovim = a:000[0]
420420
else
421421
let self.neovim = 0
422422
endif

js/vimlparser.js

Lines changed: 36 additions & 47 deletions
Large diffs are not rendered by default.

py/vimlparser.py

Lines changed: 9 additions & 14 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)