summaryrefslogtreecommitdiff
path: root/frontends/verilog/lexer.l
diff options
context:
space:
mode:
authorJohann Glaser <Johann.Glaser@gmx.at>2013-08-21 09:20:59 +0200
committerJohann Glaser <Johann.Glaser@gmx.at>2013-08-21 09:20:59 +0200
commitf352205635ddc5f5e872eafb4eebb4f770440d2b (patch)
treed10652f9c5f085476e027daca5d5a56b7ce288d1 /frontends/verilog/lexer.l
parenta99c22415783f5c829be5fd2ba77246b15a2734b (diff)
fixed Verilog parser filename and line numbering issue with include files
Diffstat (limited to 'frontends/verilog/lexer.l')
-rw-r--r--frontends/verilog/lexer.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/verilog/lexer.l b/frontends/verilog/lexer.l
index bdd01cae..6b9c9e4c 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]* {