+2008-10-21 Colin Walters <walters@verbum.org>
+
+ * giscanner/scannerlexer.l: Don't require trailing whitespace after
+ uncommented parameters.
+ * tests/*: Test it.
+
2008-10-21 Colin Walters <walters@verbum.org>
* girepository/girepository.c: Ensure that when doing an unversioned
if (!isline)
return;
+ /* Ignore lines that don't have a : - this is a hack but avoids
+ * trying to parse too many things as annotations
+ */
+ if (!strchr (line, ':'))
+ return;
+
line[i] = '\0';
- parts = g_strsplit (line, ": ", 3);
+ parts = g_strsplit (line, ":", 3);
n_parts = g_strv_length (parts);
if (g_ascii_strcasecmp (parts[0], "eprecated") == 0)
directive = gi_source_directive_new (rname, value, options);
directives = g_hash_table_lookup (scanner->directives_map, symbol);
directives = g_slist_prepend (directives, directive);
- g_hash_table_replace (scanner->directives_map,
+ g_hash_table_replace (scanner->directives_map,
g_strdup (symbol), directives);
g_strfreev (parts);
-
}
/**
* annotation_object_allow_none:
* @object: a #GObject
- * @somearg: (allow-none):
+ * @somearg: (allow-none):
**/
GObject*
annotation_object_allow_none (AnnotationObject *object, gchar *somearg)