From 43c3b86cec8a5bf043deae503027234a56d61071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 27 Nov 2013 02:41:17 +0000 Subject: improve eo_comment token to walk over starting spaces --- eo_tokenizer.rl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eo_tokenizer.rl b/eo_tokenizer.rl index 6303cd9..50200bc 100644 --- a/eo_tokenizer.rl +++ b/eo_tokenizer.rl @@ -105,7 +105,7 @@ _eo_tokenizer_class_get(Eo_Tokenizer *toknz, char *p) alpha_u = alpha | '_'; ident = alpha+ >save_fpc (alnum | '_' )+; - eo_comment = "/*@" ignore* %save_fpc ( any | '\n' @inc_line )* :>> "*/"; + eo_comment = "/*@" ignore* alnum_u >save_fpc ( any | '\n' @inc_line )* :>> "*/"; c_comment = "/*" ( any | '\n' @inc_line )* :>> "*/"; cpp_comment = "//" (any - cr)* newline; comment = ( c_comment | cpp_comment ) > save_line; -- cgit v1.1-2-g2b99