File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
88if exists (" b:did_indent" )
@@ -103,7 +103,7 @@ function s:PrevCodeLine(lnum)
103103 return lnum
104104endfunction
105105
106- " Check if line 'lnum' has more opening brackets than closing ones .
106+ " Check if line 'lnum' has a balanced amount of parentheses .
107107function 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
You can’t perform that action at this time.
0 commit comments