q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1f84f5eb6bfe899d953b455a8763bc7ff3753d74

commit 1f84f5eb6bfe899d953b455a8763bc7ff3753d74
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Fri Jun 5 17:02:47 2015 +0100

    eolian/generator: generate @ref foo for @foo
---
 src/bin/eolian/docs_generator.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/bin/eolian/docs_generator.c b/src/bin/eolian/docs_generator.c
index e91d59e..9c7a482 100644
--- a/src/bin/eolian/docs_generator.c
+++ b/src/bin/eolian/docs_generator.c
@@ -31,6 +31,21 @@ _append_section(const char *desc, int ind, int curl, 
Eina_Strbuf *buf,
         eina_strbuf_reset(wbuf);
         while (*desc && isspace(*desc) && (*desc != '\n'))
           eina_strbuf_append_char(wbuf, *desc++);
+        if (*desc == '\\')
+          {
+             desc++;
+             if (*desc != '@')
+               eina_strbuf_append_char(wbuf, '\\');
+             eina_strbuf_append_char(wbuf, *desc++);
+          }
+        else if (*desc == '@')
+          {
+             desc++;
+             if (isalpha(*desc))
+               eina_strbuf_append(wbuf, "@ref ");
+             else
+               eina_strbuf_append_char(wbuf, '@');
+          }
         while (*desc && !isspace(*desc))
           eina_strbuf_append_char(wbuf, *desc++);
         int limit = DOC_LIMIT(ind);

-- 


Reply via email to