fixed Verilog parser filename and line numbering issue with include files
authorJohann Glaser <Johann.Glaser@gmx.at>
Wed, 21 Aug 2013 07:20:59 +0000 (09:20 +0200)
committerJohann Glaser <Johann.Glaser@gmx.at>
Wed, 21 Aug 2013 07:20:59 +0000 (09:20 +0200)
frontends/verilog/lexer.l

index bdd01cae52774f379e3c45569328fda24957a258..6b9c9e4ccc0e38844d5ab48bf49a1f6cf0b11dd1 100644 (file)
@@ -71,7 +71,9 @@ namespace VERILOG_FRONTEND {
 
 "`file_pop"[^\n]*\n {
        current_filename = fn_stack.back();
+       fn_stack.pop_back();
        frontend_verilog_yyset_lineno(ln_stack.back());
+       ln_stack.pop_back();
 }
 
 "`file_notfound "[^\n]* {