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:
parent
a9cdb000ba
commit
40ce1b412a
1 changed files with 8 additions and 0 deletions
|
|
@ -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] == '/')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue