mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 16:28:53 +02:00
Fix some syntax error context by splitting internal parse and lex filelines
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ void V3ParseImp::lexUnputString(const char* textp, size_t length) {
|
||||
|
||||
int V3ParseImp::yylexReadTok() {
|
||||
// Call yylex() remembering last non-whitespace token
|
||||
parsep()->fileline()->startToken();
|
||||
parsep()->lexFileline()->startToken();
|
||||
int token = parsep()->m_lexerp->yylex();
|
||||
m_lexPrevToken = token; // Save so can find '#' to parse following number
|
||||
return token;
|
||||
|
||||
Reference in New Issue
Block a user