From: Johann Glaser Date: Wed, 21 Aug 2013 07:20:59 +0000 (+0200) Subject: fixed Verilog parser filename and line numbering issue with include files X-Git-Tag: yosys-0.2.0~490^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f352205635ddc5f5e872eafb4eebb4f770440d2b;p=yosys.git fixed Verilog parser filename and line numbering issue with include files --- diff --git a/frontends/verilog/lexer.l b/frontends/verilog/lexer.l index bdd01cae5..6b9c9e4cc 100644 --- a/frontends/verilog/lexer.l +++ b/frontends/verilog/lexer.l @@ -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]* {