summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-11-27 03:41:17 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-11-27 03:41:17 +0100
commit43c3b86cec8a5bf043deae503027234a56d61071 (patch)
treec9bc8fa3ec724429fd2fe1770823866369f116ef
parent5dfbea04939c23f7e33125ad34f96b475eb32a8a (diff)
downloadeo_tokenizer-43c3b86cec8a5bf043deae503027234a56d61071.zip
eo_tokenizer-43c3b86cec8a5bf043deae503027234a56d61071.tar.gz
improve eo_comment token to walk over starting spaces
-rw-r--r--eo_tokenizer.rl2
1 files changed, 1 insertions, 1 deletions
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;