summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-08-21 09:47:06 -0700
committerClifford Wolf <clifford@clifford.at>2013-08-21 09:47:06 -0700
commit8409956c0c1b96b69f7b43085a9fe943f23a597f (patch)
tree83aaefcdecb3a036bf1eaff3b3cb4e5ffbfb3f32
parentf8107ab7fc90dc3458769c9fe6bab0eb5c159368 (diff)
parentf352205635ddc5f5e872eafb4eebb4f770440d2b (diff)
Merge pull request #10 from hansiglaser/master
fixed Verilog parser filename and line numbering issue with include files
-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]* {