summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-06-05 16:10:12 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-06-05 16:10:12 +0100
commite94fdac8852cba3442b7b2103b8ff59cfd6c06d1 (patch)
treeefa6cbe3498aab67fa4c4358a7d0ae4c29bc6a72
parent3131c667e91e4af5eb6f653c9e43bff2b6361085 (diff)
eolian: remove support for short doc comments (//@)
-rw-r--r--src/lib/eolian/eo_lexer.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/lib/eolian/eo_lexer.c b/src/lib/eolian/eo_lexer.c
index 02df2fa9d4..41d624ca0c 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)
628 continue; 628 continue;
629 case '/': 629 case '/':
630 { 630 {
631 Eina_Bool doc = EINA_FALSE;
632 next_char(ls); 631 next_char(ls);
633 if (ls->current == '*') 632 if (ls->current == '*')
634 { 633 {
634 Eina_Bool doc = EINA_FALSE;
635 int ccol = ls->column; 635 int ccol = ls->column;
636 next_char(ls); 636 next_char(ls);
637 if ((doc = (ls->current == '@'))) 637 if ((doc = (ls->current == '@')))
@@ -644,20 +644,8 @@ lex(Eo_Lexer *ls, Eo_Token *tok)
644 } 644 }
645 else if (ls->current != '/') return '/'; 645 else if (ls->current != '/') return '/';
646 next_char(ls); 646 next_char(ls);
647 if ((doc = (ls->current == '@')))
648 next_char(ls);
649 eina_strbuf_reset(ls->buff);
650 while (ls->current && !is_newline(ls->current)) 647 while (ls->current && !is_newline(ls->current))
651 { 648 next_char(ls);
652 eina_strbuf_append_char(ls->buff, ls->current);
653 next_char(ls);
654 }
655 eina_strbuf_trim(ls->buff);
656 if (doc)
657 {
658 tok->value.s = eina_stringshare_add(eina_strbuf_string_get(ls->buff));
659 return TOK_COMMENT;
660 }
661 continue; 649 continue;
662 } 650 }
663 case '[': 651 case '[':