2121
2222" find out if an "...=..." expression is an assignment (or a conditional)
2323" it scans 'line' first, and then the previous lines
24- fun ! CdlAsignment (lnum, line )
24+ fun ! CdlAssignment (lnum, line )
2525 let f = -1
2626 let lnum = a: lnum
2727 let line = a: line
@@ -90,7 +90,7 @@ fun! CdlGetIndent(lnum)
9090 end
9191 end
9292
93- " remove members [a] of [b]:[c]... (inicio remainds valid)
93+ " remove members [a] of [b]:[c]... (inicio remains valid)
9494 let line = substitute (line , ' \c\(\[[^]]*]\(\s*of\s*\|:\)*\)\+' , ' ' , ' g' )
9595 while 1
9696 " search for the next interesting element
@@ -111,7 +111,7 @@ fun! CdlGetIndent(lnum)
111111 else " c == '='
112112 " if it is an assignment increase indent
113113 if f == -1 " we don't know yet, find out
114- let f = CdlAsignment (lnum, strpart (line , 0 , inicio))
114+ let f = CdlAssignment (lnum, strpart (line , 0 , inicio))
115115 end
116116 if f == 1 " formula increase it
117117 let ind = ind + shiftwidth ()
@@ -125,7 +125,7 @@ fun! CdlGetIndent(lnum)
125125 let ind = ind - shiftwidth ()
126126 elseif match (thisline, ' ^\s*=' ) >= 0
127127 if f == -1 " we don't know yet if is an assignment, find out
128- let f = CdlAsignment (lnum, " " )
128+ let f = CdlAssignment (lnum, " " )
129129 end
130130 if f == 1 " formula increase it
131131 let ind = ind + shiftwidth ()
0 commit comments