comparison mde/mergetag/read.d @ 6:dcb24afa0dce

Some fixes from mde/text/format.d unittests plus a few more fixes. committer: Diggory Hardy <diggory.hardy@gmail.com>
author Diggory Hardy <diggory.hardy@gmail.com>
date Thu, 10 Jan 2008 18:33:24 +0000
parents 9a990644948c
children b544c3a7c9ca
comparison
equal deleted inserted replaced
5:76d0adc92f2e 6:dcb24afa0dce
313 if (!comment && dsec != null) { 313 if (!comment && dsec != null) {
314 type = Util.trim(type); 314 type = Util.trim(type);
315 try { 315 try {
316 dsec.addTag (type, tagID, data); 316 dsec.addTag (type, tagID, data);
317 } 317 }
318 catch (MTaddTagParseException) { 318 catch (TextParseException) {
319 logger.warn("Above error occured" ~ ErrInFile); // following a parse error 319 logger.warn("Above error occured" ~ ErrInFile); // following a parse error
320 } 320 }
321 catch (MTUnknownTypeException e) { 321 catch (MTUnknownTypeException e) {
322 logger.warn ("Unsupported type \"" ~ type ~ "\" " ~ ErrInFile /*~ ":"*/); 322 logger.warn ("Unsupported type \"" ~ type ~ "\" " ~ ErrInFile /*~ ":"*/);
323 //logger.warn (e.msg); needless; the above includes enough details. 323 //logger.warn (e.msg); needless; the above includes enough details.
324 }
325 catch (Object e) {
326 logger.error ("Unknown error occured" ~ ErrInFile);
324 } 327 }
325 } else comment = false; // cancel comment status now 328 } else comment = false; // cancel comment status now
326 } 329 }
327 else if (fbuf[pos] == '{') { 330 else if (fbuf[pos] == '{') {
328 if (comment) { // simple block comment 331 if (comment) { // simple block comment