Skip to content

Commit 225212c

Browse files
committed
Fix format specifier for node.depth
1 parent f610059 commit 225212c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

autoload/vimlparser.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5183,7 +5183,7 @@ function! s:Compiler.compile_lockvar(node) abort
51835183
if a:node.depth is# s:NIL
51845184
call self.out('(lockvar %s)', join(list, ' '))
51855185
else
5186-
call self.out('(lockvar %s %s)', a:node.depth, join(list, ' '))
5186+
call self.out('(lockvar %d %s)', a:node.depth, join(list, ' '))
51875187
endif
51885188
endfunction
51895189

@@ -5192,7 +5192,7 @@ function! s:Compiler.compile_unlockvar(node) abort
51925192
if a:node.depth is# s:NIL
51935193
call self.out('(unlockvar %s)', join(list, ' '))
51945194
else
5195-
call self.out('(unlockvar %s %s)', a:node.depth, join(list, ' '))
5195+
call self.out('(unlockvar %d %s)', a:node.depth, join(list, ' '))
51965196
endif
51975197
endfunction
51985198

js/vimlparser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4673,7 +4673,7 @@ Compiler.prototype.compile_lockvar = function(node) {
46734673
this.out("(lockvar %s)", viml_join(list, " "));
46744674
}
46754675
else {
4676-
this.out("(lockvar %s %s)", node.depth, viml_join(list, " "));
4676+
this.out("(lockvar %d %s)", node.depth, viml_join(list, " "));
46774677
}
46784678
}
46794679

@@ -4683,7 +4683,7 @@ Compiler.prototype.compile_unlockvar = function(node) {
46834683
this.out("(unlockvar %s)", viml_join(list, " "));
46844684
}
46854685
else {
4686-
this.out("(unlockvar %s %s)", node.depth, viml_join(list, " "));
4686+
this.out("(unlockvar %d %s)", node.depth, viml_join(list, " "));
46874687
}
46884688
}
46894689

py/vimlparser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3737,14 +3737,14 @@ def compile_lockvar(self, node):
37373737
if node.depth is NIL:
37383738
self.out("(lockvar %s)", viml_join(list, " "))
37393739
else:
3740-
self.out("(lockvar %s %s)", node.depth, viml_join(list, " "))
3740+
self.out("(lockvar %d %s)", node.depth, viml_join(list, " "))
37413741

37423742
def compile_unlockvar(self, node):
37433743
list = [self.compile(vval) for vval in node.list]
37443744
if node.depth is NIL:
37453745
self.out("(unlockvar %s)", viml_join(list, " "))
37463746
else:
3747-
self.out("(unlockvar %s %s)", node.depth, viml_join(list, " "))
3747+
self.out("(unlockvar %d %s)", node.depth, viml_join(list, " "))
37483748

37493749
def compile_if(self, node):
37503750
self.out("(if %s", self.compile(node.cond))

0 commit comments

Comments
 (0)