diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-02-01 20:23:57 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-02-01 20:23:57 +0000 |
commit | 2e72dd4a43c2f9d88e8210eb2ce9dbe7c8519c72 (patch) | |
tree | de86ca74ef30adb1b46e76a3ecaf144ce8b754d7 /clang/bindings/xml | |
parent | 38378a06dd9e9208e412e330be7db147a023e56d (diff) |
Comment parsing: improve the fidelity of XML output for many block commands
This change introduces a 'kind' attribute for the <Para> tag, that captures the
kind of the parent block command.
For example:
\todo Meow.
used to be just <Para>Meow.</Para>, but now it is
<Para kind="todo">Meow.</Para>
llvm-svn: 174216
Diffstat (limited to 'clang/bindings/xml')
-rw-r--r-- | clang/bindings/xml/comment-xml-schema.rng | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/clang/bindings/xml/comment-xml-schema.rng b/clang/bindings/xml/comment-xml-schema.rng index ab73707b081b..39ba07af5aa3 100644 --- a/clang/bindings/xml/comment-xml-schema.rng +++ b/clang/bindings/xml/comment-xml-schema.rng @@ -499,6 +499,29 @@ <define name="TextBlockContent"> <choice> <element name="Para"> + <optional> + <attribute name="kind"> + <choice> + <value>author</value> + <value>authors</value> + <value>bug</value> + <value>copyright</value> + <value>date</value> + <value>invariant</value> + <value>note</value> + <value>post</value> + <value>pre</value> + <value>remark</value> + <value>remarks</value> + <value>sa</value> + <value>see</value> + <value>since</value> + <value>todo</value> + <value>version</value> + <value>warning</value> + </choice> + </attribute> + </optional> <zeroOrMore> <ref name="TextInlineContent" /> </zeroOrMore> |