Branch: Tag:

2002-12-23

2002-12-23 17:08:10 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Even more namespace fixes.

Rev: lib/modules/Tools.pmod/AutoDoc.pmod/DocParser.pmod:1.53
Rev: lib/modules/Tools.pmod/AutoDoc.pmod/ProcessXML.pmod:1.48
Rev: lib/modules/Tools.pmod/AutoDoc.pmod/module.pmod:1.9

112:    "_variable": standard,    "_inherit" : standard,    "_class" : standard, +  "_namespace" : standard,    "_module" : standard,    "_constant" : standard,    "_enum" : (< "constant" >) + standard,
751:    .PikeParser nameparser = .PikeParser(arg, currentPosition);    string s = nameparser->readToken();    if (!isIdent(s)) { -  if ((keyword == "namespace") && (s == "::")) { +  if (keyword == "namespace") { +  if (s == "::") {    s = ""; -  +  } else if (!isFloat(s)) { +  parseError("@%s: expected %s name, got %O", +  keyword, keyword, s); +  }    } else {    parseError("@%s: expected %s name, got %O", keyword, keyword, s);    } -  } else if (nameparser->peekToken() == "::") { +  } +  if (nameparser->peekToken() == "::") {    nameparser->readToken();    if (keyword != "namespace")    parseError("@%s: '%s::' only allowed as @namespace name",