[gegl] tools/create-reference.rb: Handle GI annotations
- From: Jon Nordby <jonnor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] tools/create-reference.rb: Handle GI annotations
- Date: Fri, 30 Sep 2011 22:53:46 +0000 (UTC)
commit c6475033da83779b386e3d1b7860bd9bda964ee8
Author: Jon Nordby <jononor gmail com>
Date: Sat Oct 1 00:36:34 2011 +0200
tools/create-reference.rb: Handle GI annotations
tools/create-reference.rb | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/tools/create-reference.rb b/tools/create-reference.rb
index e331444..d0bb96c 100755
--- a/tools/create-reference.rb
+++ b/tools/create-reference.rb
@@ -337,14 +337,22 @@ IO.foreach(ARGV[file_no]) {
function.name=$1.to_s
state = :section_doc
when :start
- line =~ / \* (.*):/
+ line =~ / \* (.*):(.*)/
elements << function if (function!=nil)
function=Function.new
function.name=$1.to_s
+ # $2 is the introspection annotations
state = :args
arg_no=-1
when :args
- if line =~ /.*@(.*):(.*)/
+ if line =~ /.*@(.*):(.*):(.*)/
+ arg_no=arg_no+1
+ argument=Argument.new
+ argument.name=$1
+ # $2 is introspection annotations
+ argument.doc=""+$3.to_s
+ function.add_arg argument
+ elsif line =~ /.*@(.*):(.*)/
arg_no=arg_no+1
argument=Argument.new
argument.name=$1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]