Skip to content

Commit b59dfbc

Browse files
authored
Update javascript.vim
1 parent a7e60bb commit b59dfbc

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

indent/javascript.vim

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Language: Javascript
33
" Maintainer: vim-javascript community
44
" URL: https://github.com/pangloss/vim-javascript
5-
" Last Change: August 6, 2016
5+
" Last Change: August 7, 2016
66

77
" Only load this indent file when no other was loaded.
88
if exists("b:did_indent")
@@ -103,7 +103,7 @@ function s:PrevCodeLine(lnum)
103103
return lnum
104104
endfunction
105105

106-
" Check if line 'lnum' has more opening brackets than closing ones.
106+
" Check if line 'lnum' has a balanced amount of parentheses.
107107
function s:Balanced(lnum)
108108
let open_0 = 0
109109
let open_2 = 0
@@ -131,7 +131,6 @@ function GetJavascriptIndent()
131131
endif
132132
" Get the current line.
133133
let line = getline(v:lnum)
134-
" previous nonblank line number
135134
let syns = synIDattr(synID(v:lnum, 1, 0), 'name')
136135

137136
" start with strings,comments,etc.{{{2

0 commit comments

Comments
 (0)