added handling of HTML entities
This commit is contained in:
parent
13d2dad679
commit
4955cdaac6
5 changed files with 94 additions and 8 deletions
|
|
@ -1263,16 +1263,15 @@ size_t DoxygenParser::processNormalComment(size_t pos, const std::string &line)
|
|||
size_t endOfWordPos = line.find_first_not_of("abcdefghijklmnopqrstuvwxyz", pos + 1);
|
||||
if (endOfWordPos != string::npos) {
|
||||
if (line[endOfWordPos] == ';') {
|
||||
addDoxyCommand(m_tokenList, line.substr(pos, endOfWordPos));
|
||||
addDoxyCommand(m_tokenList, line.substr(pos, endOfWordPos - pos));
|
||||
endOfWordPos++; // skip ';'
|
||||
} else {
|
||||
// it is not an entity - push plain string
|
||||
m_tokenList.push_back(Token(PLAINSTRING,
|
||||
line.substr(pos, endOfWordPos - pos)));
|
||||
pos = endOfWordPos;
|
||||
}
|
||||
} else {
|
||||
pos = string::npos;
|
||||
}
|
||||
pos = endOfWordPos;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue