Commit 26807ba7 authored by Christian Hergert's avatar Christian Hergert

util: special case escape characters

parent 71ae157e
......@@ -100,6 +100,19 @@ gtk_doc_next_token (const gchar **ptr,
ch = g_utf8_get_char (iter);
/* Handle escape char immediately */
if (ch == '\\')
{
gchar esc[8] = {0};
iter = g_utf8_next_char (iter);
ch = g_utf8_get_char (iter);
if (ch != 0)
g_unichar_to_utf8 (ch, esc);
*ptr = g_utf8_next_char (iter);
*type = GTK_DOC_TOKEN_NONE;
return g_strdup (esc);
}
while (g_unichar_isspace (ch))
{
/* read up to next non-white-space */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment