Branch: Tag:

2001-05-09

2001-05-09 15:09:39 by David Norlin <norlin@roxen.com>

Check that @keyword{ ... @} really is a keyword, and that it can be used
with that syntax.

Rev: lib/modules/Tools.pmod/AutoDoc.pmod/DocParser.pmod:1.31

514:    string keyword = s[start .. i - 1];    if (s[i] != '{' || keyword == "")    parseError("expected @keyword{, got %O", s[start .. i]); +  if (getKeywordType(keyword) != BRACEKEYWORD) +  parseError("@%s cannot be used like this: @%s{ ... @}", +  keyword, keyword);    ++i;    tagstack = ({ keyword }) + tagstack;    if (keyword == "xml")