- Timestamp:
- 16/08/10 21:41:49 (3 years ago)
- Children:
- b36d53cc61ecdfd153a0c3f7029459580c56d6c4
- Parents:
- 759935945aef4be4bdc69724a7648f25885843f4
- git-committer:
- Matias De la Puente <mfpuente.ar@…> (16/08/10 21:41:49)
- File:
-
- 1 edited
-
libi4uc/i4ucprojectspresenter.vala (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libi4uc/i4ucprojectspresenter.vala
r109c655 r9d43db9 288 288 { 289 289 if (command_context.output_regex == null || 290 command_context.output_regex == "" || 291 !Regex.match_simple (command_context.output_regex, output) || 292 command_context.output_regex_line_index == -1) 293 return; 294 295 string[] sequence = {}; 296 foreach (var str in Regex.split_simple (command_context.output_regex, output)) 297 if (str != "") 298 sequence += str; 299 300 var line = sequence[command_context.output_regex_line_index].to_int (); 301 _documents_presenter.open_document (command_context.source_uri, line); 290 command_context.output_regex == "") 291 return; 292 293 try 294 { 295 var regex = new Regex (command_context.output_regex); 296 297 MatchInfo match_info; 298 if (!regex.match (output, 0, out match_info)) 299 return; 300 301 var line = match_info.fetch_named ("line"); 302 _documents_presenter.open_document (command_context.source_uri, line.to_int ()); 303 } 304 catch (Error e) 305 { 306 warning (e.message); 307 } 302 308 } 303 309
Note: See TracChangeset
for help on using the changeset viewer.

