Changeset View
Changeset View
Standalone View
Standalone View
autotests/folding/highlight.lua.fold
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Line(s) | |||||
153 | for i=1,10 <beginfold id='1'>do</beginfold id='1'> | 153 | for i=1,10 <beginfold id='1'>do</beginfold id='1'> | ||
154 | local y = 0 | 154 | local y = 0 | ||
155 | a[i] = <beginfold id='1'>function</beginfold id='1'> () y=y+1; return x+y <endfold id='1'>end</endfold id='1'> | 155 | a[i] = <beginfold id='1'>function</beginfold id='1'> () y=y+1; return x+y <endfold id='1'>end</endfold id='1'> | ||
156 | <endfold id='1'>end</endfold id='1'> | 156 | <endfold id='1'>end</endfold id='1'> | ||
157 | 157 | | |||
158 | --! \brief gfind is deprecated | 158 | --! \brief gfind is deprecated | ||
159 | string.gfind('s') | 159 | string.gfind('s') | ||
160 | string.gmatch('f') | 160 | string.gmatch('f') | ||
161 | | ||||
162 | <beginfold id='1'>function</beginfold id='1'> foo() | ||||
163 | <beginfold id='1'>if</beginfold id='1'> x then | ||||
164 | <beginfold id='1'>function</beginfold id='1'>() <endfold id='1'>end</endfold id='1'> | ||||
165 | bar=<beginfold id='1'>function</beginfold id='1'>() | ||||
166 | <beginfold id='1'>if</beginfold id='1'> y then | ||||
167 | <beginfold id='1'>if</beginfold id='1'> z then <endfold id='1'>end</endfold id='1'> | ||||
168 | <endfold id='1'>end</endfold id='1'> | ||||
169 | <endfold id='1'>end</endfold id='1'> | ||||
170 | <endfold id='1'>end</endfold id='1'> | ||||
171 | <endfold id='1'>end</endfold id='1'> |