Skip to content

Commit 13610e6

Browse files
committed
Updating indent top comments
1 parent d17aee5 commit 13610e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

indent/javascript.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
" Vim indent file
22
" Language: Javascript
3+
" Maintainer: vim-javascript community
4+
" URL: https://github.com/pangloss/vim-javascript
35
" Acknowledgement: Based off of vim-ruby maintained by Nikolai Weibull http://vim-ruby.rubyforge.org
46

57
" Only load this indent file when no other was loaded.
@@ -179,7 +181,7 @@ function GetJavascriptIndent()
179181
if line =~ s:line_pre . '[])}]'
180182
return indent(num)
181183
end
182-
let inb = num == 0 ? 1 : s:Onescope(num, strpart(getline(num),0,b:js_cache[2] - 1),1)
184+
let inb = num == 0 ? 1 : s:Onescope(num, strpart(getline(num),0,b:js_cache[2] - 1),1)
183185
let switch_offset = (!inb || num == 0) || expand("<cword>") != 'switch' ? 0 : &cino !~ ':' || !has('float') ? s:sw() :
184186
\ float2nr(str2float(matchstr(&cino,'.*:\zs[-0-9.]*')) * (match(&cino,'.*:\zs[^,]*s') ? s:sw() : 1))
185187
if ((line =~ g:javascript_opfirst ||

0 commit comments

Comments
 (0)