diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-11-25 12:24:12 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-11-25 12:24:12 +0100 |
commit | 3a2f5ce74db0e40cb2a9a6afcc8c09b61e894c0c (patch) | |
tree | 10eb0c505aea2cecdc0eba69a765897852493394 | |
parent | 482fecd7e680c5a359783d8099d2cc4695f06d9c (diff) | |
download | eo_tokenizer-3a2f5ce74db0e40cb2a9a6afcc8c09b61e894c0c.zip eo_tokenizer-3a2f5ce74db0e40cb2a9a6afcc8c09b61e894c0c.tar.gz |
want ';' at the end of statements
-rw-r--r-- | data/02_classes.c | 18 | ||||
-rw-r--r-- | 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 = ','; |