Branch: Tag:

2012-02-05

2012-02-05 21:26:47 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Tools.AutoDoc: Added syntax and markup for documenting cpp directives.

1035:    case "import":    case "typedef":    case "variable": +  case "directive":    // These don't have children.    attrs->class_path = path;    return;
1108:      string parse_not_doc(Node n) {    string ret = ""; -  int method, argument, variable, const, typedf; +  int method, argument, variable, const, typedf, cppdir;       if (!n) return "";   
1234:    case "import":    break;    +  case "directive": +  if(cppdir++) ret += "<br />\n"; +  ret += "<tt><font color='#006666'>" + c->get_attributes()->name + +  "</font></tt>"; +  break; +     default:    error( "Illegal element " + c->get_any_name() + " in !doc.\n" );    break;