Branch: Tag:

2011-12-18

2011-12-18 17:55:59 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Tools.AutoDoc.DocParser: Added support for the obsolete @global keyword.

54:    "appears" : METAKEYWORD,    "belongs" : METAKEYWORD,    "class" : METAKEYWORD, +  "global" : METAKEYWORD,    "endclass" : METAKEYWORD,    "module" : METAKEYWORD,    "endmodule" : METAKEYWORD,
937:    }    break;    +  case "global": +  { +  parseError("The @global keyword is obsolete. " +  "Use @belongs predef:: instead."); +  if (meta->type == "class" || meta->type == "decl" +  || meta->type == "module" || !meta->type) +  { +  if (meta->belongs) +  parseError("duplicate @belongs/@global"); +  if (meta->appears) +  parseError("both @appears and @belongs/@global"); +  if (scopeModule) +  parseError("both 'scope::' and @belongs/@global"); +  meta->belongs = "predef::"; +  } +  } +  break; +     case "belongs":    {    if (endkeyword)