Now commands with no whitespace following them are also parsed

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13632 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dmitry Kabak 2012-08-16 14:16:59 +00:00
commit 40ce1b412a

View file

@ -46,6 +46,14 @@ TokenList TokenList::tokenizeDoxygenComment(const std::string &doxygenComment, c
currentWord += doxygenComment[pos];
pos++;
}
// also strip the command till the first nonalpha char
for (int i=2; i<currentWord.size(); i++)
if (!isalpha(currentWord[i])) {
currentWord = currentWord.substr(0, i);
// set current parsing pos back, to parse the rest of the command
pos = lastPos + i - 1;
break;
}
tokList.m_tokenList.push_back(Token(COMMAND, currentWord));
}
else if (currentWord.size() && (currentWord[0] == '!' || currentWord[0] == '*' || currentWord[0] == '/')) {