mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 04:43:06 +02:00
writer: Include documentation and symbol position in source files
Some documentation tool (as hotdoc[0]) need to have information about symbol declaration and documentation positions in the source files to be able to do smart indexing (automatically build the documenation index). [0] https://hotdoc.github.io/ Fixes #175
This commit is contained in:
parent
8c36d53cba
commit
4b32b6e116
@ -2828,7 +2828,7 @@ start_element_handler (GMarkupParseContext *context,
|
|||||||
if (start_discriminator (context, element_name,
|
if (start_discriminator (context, element_name,
|
||||||
attribute_names, attribute_values,
|
attribute_names, attribute_values,
|
||||||
ctx, error))
|
ctx, error))
|
||||||
goto out;
|
goto out;
|
||||||
if (strcmp ("doc", element_name) == 0 || strcmp ("doc-deprecated", element_name) == 0 ||
|
if (strcmp ("doc", element_name) == 0 || strcmp ("doc-deprecated", element_name) == 0 ||
|
||||||
strcmp ("doc-stability", element_name) == 0 || strcmp ("doc-version", element_name) == 0)
|
strcmp ("doc-stability", element_name) == 0 || strcmp ("doc-version", element_name) == 0)
|
||||||
{
|
{
|
||||||
@ -3068,6 +3068,13 @@ start_element_handler (GMarkupParseContext *context,
|
|||||||
goto out;
|
goto out;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 's':
|
||||||
|
if (strcmp ("source-position", element_name) == 0)
|
||||||
|
{
|
||||||
|
state_switch (ctx, STATE_PASSTHROUGH);
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
if (start_union (context, element_name,
|
if (start_union (context, element_name,
|
||||||
attribute_names, attribute_values,
|
attribute_names, attribute_values,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user