q66 pushed a commit to branch master.

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

commit e94fdac8852cba3442b7b2103b8ff59cfd6c06d1
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Fri Jun 5 16:10:12 2015 +0100

    eolian: remove support for short doc comments (//@)
---
 src/lib/eolian/eo_lexer.c | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

diff --git a/src/lib/eolian/eo_lexer.c b/src/lib/eolian/eo_lexer.c
index 02df2fa..41d624c 100644
--- a/src/lib/eolian/eo_lexer.c
+++ b/src/lib/eolian/eo_lexer.c
@@ -628,10 +628,10 @@ lex(Eo_Lexer *ls, Eo_Token *tok)
         continue;
       case '/':
         {
-           Eina_Bool doc = EINA_FALSE;
            next_char(ls);
            if (ls->current == '*')
              {
+                Eina_Bool doc = EINA_FALSE;
                 int ccol = ls->column;
                 next_char(ls);
                 if ((doc = (ls->current == '@')))
@@ -644,20 +644,8 @@ lex(Eo_Lexer *ls, Eo_Token *tok)
              }
            else if (ls->current != '/') return '/';
            next_char(ls);
-           if ((doc = (ls->current == '@')))
-             next_char(ls);
-           eina_strbuf_reset(ls->buff);
            while (ls->current && !is_newline(ls->current))
-             {
-                eina_strbuf_append_char(ls->buff, ls->current);
-                next_char(ls);
-             }
-           eina_strbuf_trim(ls->buff);
-           if (doc)
-             {
-                tok->value.s = 
eina_stringshare_add(eina_strbuf_string_get(ls->buff));
-                return TOK_COMMENT;
-             }
+             next_char(ls);
            continue;
         }
       case '[':

-- 


Reply via email to