summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Clayton <phil.clayton@veonix.com>2021-01-17 19:34:32 +0000
committerPhil Clayton <phil.clayton@veonix.com>2021-03-14 16:17:26 +0000
commit0a4c329d39546e4775f41eb802b72172a42ff274 (patch)
treef8e8b60d8fd9fb078b63892ac374bcfca8cdaac9
parentd3d86b7408a265bcfcadae84e053a31520f38e31 (diff)
downloadgobject-introspection-0a4c329d39546e4775f41eb802b72172a42ff274.tar.gz
Fix syntax errors in gir-1.2.rnc
Closes #373
-rw-r--r--docs/gir-1.2.rnc22
1 files changed, 11 insertions, 11 deletions
diff --git a/docs/gir-1.2.rnc b/docs/gir-1.2.rnc
index 6fa656c2..a6478119 100644
--- a/docs/gir-1.2.rnc
+++ b/docs/gir-1.2.rnc
@@ -262,18 +262,18 @@ grammar {
attribute xml:whitespace { "preserve" }?,
## the text of the version of the documentation
text
- }?
+ }? &
## give the stability of the documentation
- & element doc-stability {
+ element doc-stability {
## Preserve the original formatting of the documentation from the source code
attribute xml:space { "preserve" }?,
## Preserve the original formatting of the documentation from the source code. Recommended to use this instead of xml:space
attribute xml:whitespace { "preserve" }?,
## a text value about the stability of the documentation. Usually a simple description like stable or unstable
text
- }?
+ }? &
## documentation of an element
- & element doc {
+ element doc {
## Preserve the original formatting of the documentation from the source code
attribute xml:space { "preserve" }?,
## Keep the whitespace as they were in the source code
@@ -286,24 +286,24 @@ grammar {
attribute column { xsd:string },
## the text of the documentation
text
- }?
+ }? &
## Deprecated documentation of an element. Kept for historical reasons in general
- & element doc-deprecated {
+ element doc-deprecated {
## Preserve the original formatting of the documentation from the source code
attribute xml:space { "preserve" }?,
## Keep the whitespace as they were in the source code
attribute xml:whitespace { "preserve" }?,
## the text of the deprecated documentation
text
- }?
+ }? &
## Position of the documentation in the original source code
- & element source-position {
+ element source-position {
## File name of the source of the documentation
attribute filename { xsd:string },
## The first line of the documentation in the source code
attribute line { xsd:string },
## The first column of the documentation in the source code
- attribute column { xsd:string },
+ attribute column { xsd:string }
}?
)
@@ -532,10 +532,10 @@ grammar {
(DocElements
& (AnyType | VarArgs))
- }*
+ }* &
## instance-parameter is a parameter of a C function which is an instance of an existing object. So the callable is surely a method of a class, and this parameter points to the instance of the object. In C++, this would be equivalent to the pointer this which is not passed to the method, in Python it's equivalent to self.
- & element instance-parameter {
+ element instance-parameter {
## name of the instance-parameter
attribute name { xsd:string },
## Binary attribute, true if the parameter can have a null value