From 447e402d16fcb65ce9fe2a79fabe21fbcd4e3b2e Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 11 Aug 2014 15:02:14 -0700 Subject: [PATCH] Require a space between the synthesis and translate_* key words --- lexor.lex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lexor.lex b/lexor.lex index 2dd3ae0c5..d14e38694 100644 --- a/lexor.lex +++ b/lexor.lex @@ -142,8 +142,8 @@ TU [munpf] that flag to attach implicit attributes to "initial" and "always" statements. */ -"//"{W}*"synthesis"{W}*"translate_on"{W}*\n { pform_mc_translate_on(true); } -"//"{W}*"synthesis"{W}*"translate_off"{W}*\n { pform_mc_translate_on(false); } +"//"{W}*"synthesis"{W}+"translate_on"{W}*\n { pform_mc_translate_on(true); } +"//"{W}*"synthesis"{W}+"translate_off"{W}*\n { pform_mc_translate_on(false); } "//" { comment_enter = YY_START; BEGIN(LCOMMENT); } . { yymore(); } \n { yylloc.first_line += 1; BEGIN(comment_enter); }