summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2017-12-24 09:22:36 (GMT)
committerGitHub <noreply@github.com>2017-12-24 09:22:36 (GMT)
commite1765b5c8f819a3f99ade2c551b73a08043c3a6f (patch)
tree0e220a2e31b0cab727edc2f8045f7eaebb8856fc /src
parent4f45bd20d4da7d40c793ec4c4c13558581e995ac (diff)
parenta3c5958b437b5dc9de91de5f40917ec53532b60a (diff)
downloadDoxygen-e1765b5c8f819a3f99ade2c551b73a08043c3a6f.zip
Doxygen-e1765b5c8f819a3f99ade2c551b73a08043c3a6f.tar.gz
Doxygen-e1765b5c8f819a3f99ade2c551b73a08043c3a6f.tar.bz2
Merge pull request #613 from Cyberboss/patch-1
Suppresses warning for XML <see langword="..."/>
Diffstat (limited to 'src')
-rw-r--r--src/docparser.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index eac6e97..25d4b0c 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -6125,9 +6125,20 @@ int DocPara::handleHtmlStartTag(const QCString &tagName,const HtmlAttribList &ta
}
}
}
+ else if (findAttribute(tagHtmlAttribs,"langword",&cref)) // <see langword="..."/> or <see langworld="..."></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));
+ }
+ }
else
{
- warn_doc_error(g_fileName,doctokenizerYYlineno,"Missing 'cref' attribute from <see> tag.");
+ warn_doc_error(g_fileName,doctokenizerYYlineno,"Missing 'cref' or 'langword' attribute from <see> tag.");
}
}
break;