diff -r c8c48ab075e0 -r a435684a5223 stage1_2/iec_flex.ll --- a/stage1_2/iec_flex.ll Sat Feb 15 23:58:16 2014 +0000 +++ b/stage1_2/iec_flex.ll Sun Feb 16 00:37:40 2014 +0000 @@ -1143,13 +1143,13 @@ {il_whitespace} /* Eat any whitespace */ /* The comments */ -{comment_beg} yy_push_state(comment_state); -{comment_beg} yy_push_state(comment_state); +{comment_beg} yy_push_state(comment_state); +{comment_beg} yy_push_state(comment_state); { -{comment_beg} yy_push_state(comment_state); -{comment_end} yy_pop_state(); -. /* Ignore text inside comment! */ -\n /* Ignore text inside comment! */ +{comment_beg} {if (get_opt_nested_comments()) yy_push_state(comment_state);} +{comment_end} yy_pop_state(); +. /* Ignore text inside comment! */ +\n /* Ignore text inside comment! */ } /*****************************************/