summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-04-22 09:51:59 (GMT)
committerGitHub <noreply@github.com>2018-04-22 09:51:59 (GMT)
commit58234804fef9a95a4035d8c787d07854530623f1 (patch)
treec59c019931bde5eb65926a7019c361ef27bb9a61 /src/docparser.cpp
parent243a3fce87107ac7c6afc7a9d5883ddc007a8534 (diff)
parent7e041a6f5bf32637ebb71589d471586db1d0f7fd (diff)
downloadDoxygen-58234804fef9a95a4035d8c787d07854530623f1.zip
Doxygen-58234804fef9a95a4035d8c787d07854530623f1.tar.gz
Doxygen-58234804fef9a95a4035d8c787d07854530623f1.tar.bz2
Merge pull request #681 from albert-github/feature/bug_794509
Bug 794509 - c# see langword broken
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index 0257a1e..215439a 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -6145,16 +6145,15 @@ int DocPara::handleHtmlStartTag(const QCString &tagName,const HtmlAttribList &ta
}
}
}
- else if (findAttribute(tagHtmlAttribs,"langword",&cref)) // <see langword="..."/> or <see langworld="..."></see>
+ else if (findAttribute(tagHtmlAttribs,"langword",&cref)) // <see langword="..."/> or <see langword="..."></see>
{
- doctokenizerYYsetStatePara();
- DocLink *lnk = new DocLink(this,cref);
- m_children.append(lnk);
- QCString leftOver = lnk->parse(FALSE,TRUE);
- if (!leftOver.isEmpty())
- {
- m_children.append(new DocWord(this,leftOver));
- }
+ bool inSeeBlock = g_inSeeBlock;
+ g_token->name = cref;
+ g_inSeeBlock = TRUE;
+ m_children.append(new DocStyleChange(this,g_nodeStack.count(),DocStyleChange::Code,TRUE));
+ handleLinkedWord(this,m_children,TRUE);
+ m_children.append(new DocStyleChange(this,g_nodeStack.count(),DocStyleChange::Code,FALSE));
+ g_inSeeBlock = inSeeBlock;
}
else
{