summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-02-01 20:23:57 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-02-01 20:23:57 +0000
commitaf01bed59b2fe18fa483f5dbb86584b31eda6f98 (patch)
tree207c2c05e7f8235bf541d37b2cb51010ec0bfc02 /bindings
parent2821e180094459cbdef37e7d7c12bb406d5b82ba (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> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174216 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/xml/comment-xml-schema.rng23
1 files changed, 23 insertions, 0 deletions
diff --git a/bindings/xml/comment-xml-schema.rng b/bindings/xml/comment-xml-schema.rng
index ab73707b08..39ba07af5a 100644
--- a/bindings/xml/comment-xml-schema.rng
+++ b/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>