Skip to content

Commit c289c4a

Browse files
save file
1 parent 91a3266 commit c289c4a

1 file changed

Lines changed: 25 additions & 23 deletions

File tree

‎utils/editors/html/code-explorer/v1.0/code-explorer-v1.0.html‎

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -225,29 +225,6 @@
225225
}//fn
226226

227227

228-
parse.label = function(txt){
229-
230-
var list = [];
231-
var regex = /\/\/\s*([^:\r\n]+):/g;
232-
233-
var ec = true;
234-
while(ec){
235-
236-
var match = regex.exec(code);
237-
if(match===null)break;
238-
239-
var line = lineno(txt,match.index);
240-
var label = match[1].trim();
241-
242-
list.push({line,label});
243-
244-
}//while
245-
246-
return list;
247-
248-
}//label
249-
250-
251228
parse.type1 = function(txt,i1){
252229

253230
i1 += 8;
@@ -307,10 +284,35 @@
307284
}//args
308285

309286

287+
288+
//:
289+
290+
310291
parse.label = function(txt){
292+
293+
var list = [];
294+
var regex = /\/\/\s*([^:\r\n]+):/g;
295+
296+
var ec = true;
297+
while(ec){
298+
299+
var match = regex.exec(code);
300+
if(match===null)break;
301+
302+
var line = lineno(txt,match.index);
303+
var label = match[1].trim();
304+
305+
list.push({line,label});
306+
307+
}//while
308+
309+
return list;
310+
311311
}//label
312312

313313

314+
315+
314316
//:
315317

316318

0 commit comments

Comments
 (0)