From 3a2f5ce74db0e40cb2a9a6afcc8c09b61e894c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 25 Nov 2013 12:24:12 +0100 Subject: want ';' at the end of statements --- data/02_classes.c | 18 +++++++++--------- eo_tokenizer.rl | 3 +-- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/data/02_classes.c b/data/02_classes.c index 5d8cdc8..04cfd29 100644 --- a/data/02_classes.c +++ b/data/02_classes.c @@ -10,18 +10,18 @@ * comment * here */ - inherits {} - inherits { Eo_Base } - inherits { Eo_Another, Evas_Common_Interface } -} + inherits {}; + inherits { Eo_Base }; + inherits { Eo_Another, Evas_Common_Interface }; +}; C_class_D { /*@ This is a comment for class C_class_D. */ // haha - inherits { Eo_Another, Evas_Common_Interface } + inherits { Eo_Another, Evas_Common_Interface }; // hoho -} +}; Cvas_objecD { @@ -31,13 +31,13 @@ C_class_D { /* * bloh */ -} +}; E_class_F { /* */ - inherits {} + inherits {}; - } + }; FAIL NOW ! diff --git a/eo_tokenizer.rl b/eo_tokenizer.rl index 44e344e..cd39a0a 100644 --- a/eo_tokenizer.rl +++ b/eo_tokenizer.rl @@ -108,9 +108,8 @@ _eo_tokenizer_class_get(Eo_Tokenizer *toknz, char *p) alnum_u = alnum | '_'; alpha_u = alpha | '_'; - end_statement = ';'; begin_def = '{'; - end_def = '}'; + end_def = '};'; begin_list = '{'; end_list = '}'; list_separator = ','; -- cgit v1.1-2-g2b99