--- 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_state>{il_whitespace} /* Eat any whitespace */
/* The comments */
-<body_state,vardecl_list_state>{comment_beg} yy_push_state(comment_state);
-{comment_beg} yy_push_state(comment_state);
+<body_state,vardecl_list_state>{comment_beg} yy_push_state(comment_state);
+{comment_beg} yy_push_state(comment_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! */
}
/*****************************************/