Require a space between the synthesis and translate_* key words

This commit is contained in:
Cary R 2014-08-11 15:02:14 -07:00 committed by Maciej Suminski
parent 86bb269d47
commit 447e402d16
1 changed files with 2 additions and 2 deletions

View File

@ -142,8 +142,8 @@ TU [munpf]
that flag to attach implicit attributes to "initial" and that flag to attach implicit attributes to "initial" and
"always" statements. */ "always" statements. */
"//"{W}*"synthesis"{W}*"translate_on"{W}*\n { pform_mc_translate_on(true); } "//"{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_off"{W}*\n { pform_mc_translate_on(false); }
"//" { comment_enter = YY_START; BEGIN(LCOMMENT); } "//" { comment_enter = YY_START; BEGIN(LCOMMENT); }
<LCOMMENT>. { yymore(); } <LCOMMENT>. { yymore(); }
<LCOMMENT>\n { yylloc.first_line += 1; BEGIN(comment_enter); } <LCOMMENT>\n { yylloc.first_line += 1; BEGIN(comment_enter); }