[gobject-introspection: 1/2] Fix syntax errors in gir-1.2.rnc
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection: 1/2] Fix syntax errors in gir-1.2.rnc
- Date: Sun, 14 Mar 2021 18:18:03 +0000 (UTC)
commit 0a4c329d39546e4775f41eb802b72172a42ff274
Author: Phil Clayton <phil clayton veonix com>
Date: Sun Jan 17 19:34:32 2021 +0000
Fix syntax errors in gir-1.2.rnc
Closes #373
docs/gir-1.2.rnc | 22 +++++++++++-----------
1 file 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]