File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function! vimlparser#test(input, ...)
18
18
else
19
19
let l: neovim = 0
20
20
endif
21
- let i = type (a: input ) == 1 && filereadable (a: input ) ? readfile (a: input ) : a: input
21
+ let i = type (a: input ) == 1 && filereadable (a: input ) ? readfile (a: input ) : [ a: input]
22
22
let r = s: StringReader .new (i )
23
23
let p = s: VimLParser .new (l: neovim )
24
24
let c = s: Compiler .new ()
@@ -3639,21 +3639,20 @@ function! s:StringReader.new(...)
3639
3639
endfunction
3640
3640
3641
3641
function ! s: StringReader .__init__ (lines )
3642
- let lines = type (a: lines ) == 3 ? a: lines : [a: lines ]
3643
3642
let self .buf = []
3644
3643
let self .pos = []
3645
3644
let lnum = 0
3646
- while lnum < len (lines )
3645
+ while lnum < len (a: lines )
3647
3646
let col = 0
3648
- for c in split (lines [lnum], ' \zs' )
3647
+ for c in split (a: lines [lnum], ' \zs' )
3649
3648
call add (self .buf , c )
3650
3649
call add (self .pos, [lnum + 1 , col + 1 ])
3651
3650
let col += len (c )
3652
3651
endfor
3653
- while lnum + 1 < len (lines ) && lines [lnum + 1 ] = ~# ' ^\s*\\'
3652
+ while lnum + 1 < len (a: lines ) && a: lines [lnum + 1 ] = ~# ' ^\s*\\'
3654
3653
let skip = s: TRUE
3655
3654
let col = 0
3656
- for c in split (lines [lnum + 1 ], ' \zs' )
3655
+ for c in split (a: lines [lnum + 1 ], ' \zs' )
3657
3656
if skip
3658
3657
if c == ' \'
3659
3658
let skip = s: FALSE
You can’t perform that action at this time.
0 commit comments