summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-03-23 17:42:32 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-03-23 17:42:32 (GMT)
commit7e041a6f5bf32637ebb71589d471586db1d0f7fd (patch)
tree7354e4bf680eff4e03b75790996b05a2d08e4da9 /src/docparser.cpp
parent7e2fcd305c8c9377aa958a3d812cc31bc81c0e32 (diff)
downloadDoxygen-7e041a6f5bf32637ebb71589d471586db1d0f7fd.zip
Doxygen-7e041a6f5bf32637ebb71589d471586db1d0f7fd.tar.gz
Doxygen-7e041a6f5bf32637ebb71589d471586db1d0f7fd.tar.bz2
Bug 794509 - c# see langword broken
- code.l: The word 'null' was not recognized as reserved word - docparser.l The attribute 'langword' should not generate a link but the 'langword' value as code.
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 3d57c2e..f57319f 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -6125,16 +6125,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
{