Skip to content

Commit 29cf46a

Browse files
committed
Cosmetic changes for scripts
1 parent d9c167e commit 29cf46a

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

js/jscompiler.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,10 +894,10 @@ function! s:parse_args() abort
894894
if len(args) != 2
895895
throw 'invalid argument: ' . string(args)
896896
endif
897-
let v = args
897+
let v = args
898898
endif
899899
return v
900-
endfunction:
900+
endfunction
901901

902902
function! s:main() abort
903903
try

scripts/update_builtin_commands.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ fi
88
vim -u NONE -i NONE -n -N -e -s \
99
--cmd "let &rtp .= ',' . getcwd()" \
1010
--cmd "source scripts/update_builtin_commands.vim" \
11-
--cmd "call g:VimLParserNewCmds('$1')" \
11+
--cmd "call VimLParserNewCmds('$1')" \
1212
--cmd "qall!"
1313
echo

scripts/update_builtin_commands.vim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ function! s:gen(ex_cmds_h) abort
8080

8181
let trie = s:Trie.new()
8282

83-
let cumname = ''
8483
for [i, line] in map(copy(lines), {i, l -> [i, l]})
8584
if line =~# '^EX('
8685
let name = matchstr(line, '"\zs.*\ze",')
@@ -123,7 +122,7 @@ endfunction
123122
" -- main
124123

125124
" ex_cmds_h: path to vim/src/ex_cmds.h
126-
function! g:VimLParserNewCmds(ex_cmds_h) abort
125+
function! VimLParserNewCmds(ex_cmds_h) abort
127126
let vimlparser = vimlparser#import()
128127
let latest = s:gen(a:ex_cmds_h)
129128
let new_cmds = s:gen_new_builtin(vimlparser#import().VimLParser.builtin_commands, latest)

0 commit comments

Comments
 (0)