mirror of https://github.com/YosysHQ/yosys.git
fixed Verilog parser filename and line numbering issue with include files
This commit is contained in:
parent
a99c224157
commit
f352205635
|
@ -71,7 +71,9 @@ namespace VERILOG_FRONTEND {
|
||||||
|
|
||||||
"`file_pop"[^\n]*\n {
|
"`file_pop"[^\n]*\n {
|
||||||
current_filename = fn_stack.back();
|
current_filename = fn_stack.back();
|
||||||
|
fn_stack.pop_back();
|
||||||
frontend_verilog_yyset_lineno(ln_stack.back());
|
frontend_verilog_yyset_lineno(ln_stack.back());
|
||||||
|
ln_stack.pop_back();
|
||||||
}
|
}
|
||||||
|
|
||||||
"`file_notfound "[^\n]* {
|
"`file_notfound "[^\n]* {
|
||||||
|
|
Loading…
Reference in New Issue