Skip to content

Commit 1ef1738

Browse files
committed
Merge pull request #5 from Kuniwak/fix-typo
Fix a typo
2 parents bf89746 + eadcd66 commit 1ef1738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/jscompiler.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ let s:viml_builtin_functions = ['abs', 'acos', 'add', 'and', 'append', 'append',
843843

844844
function! s:test()
845845
let vimfile = 'autoload/vimlparser.vim'
846-
let pyfile = 'js/vimlparser.js'
846+
let jsfile = 'js/vimlparser.js'
847847
let vimlfunc = 'js/vimlfunc.js'
848848
let head = readfile(vimlfunc)
849849
try
@@ -852,7 +852,7 @@ function! s:test()
852852
let c = s:JavascriptCompiler.new()
853853
let lines = c.compile(p.parse(r))
854854
unlet lines[0 : index(lines, 'var NIL = [];') - 1]
855-
call writefile(head + lines + ['', 'main()'], pyfile)
855+
call writefile(head + lines + ['', 'main()'], jsfile)
856856
catch
857857
echoerr substitute(v:throwpoint, '\.\.\zs\d\+', '\=s:numtoname(submatch(0))', 'g') . "\n" . v:exception
858858
endtry

0 commit comments

Comments
 (0)