Skip to content

Commit 6abf8bb

Browse files
committed
fix @vimlint
1 parent 1c05c95 commit 6abf8bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

autoload/vimlint.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ endfunction " }}}
890890

891891
function s:VimlLint.compile(node, refchk) " {{{
892892
if type(a:node) ==# type({}) && has_key(a:node, 'type')
893-
if a:node.type != 2 && g:vimlint#debug > 2
893+
if a:node.type != 2 && g:vimlint#debug > 2 || g:vimlint#debug >= 5
894894
call s:echonode(a:node, a:refchk)
895895
endif
896896
" else
@@ -1096,7 +1096,7 @@ function s:VimlLint.compile_comment(node) " {{{
10961096
if len(l) == 0
10971097
return
10981098
endif
1099-
if !vimlint#util#isvarname(l[4]) && l[4] !=# s:def_var_name
1099+
if !vimlint#util#isvarname(l[4]) && l[4] !=# s:def_var_name && l[4] != ''
11001100
return
11011101
endif
11021102

@@ -1106,6 +1106,7 @@ function s:VimlLint.compile_comment(node) " {{{
11061106
endif
11071107
return
11081108
endif
1109+
11091110
if l[3] == ''
11101111
let v = s:def_var_name
11111112
else

0 commit comments

Comments
 (0)