Fix some syntax error context by splitting internal parse and lex filelines

This commit is contained in:
Wilson Snyder
2020-06-07 13:45:50 -04:00
parent 466fd56d18
commit b469feb44b
11 changed files with 53 additions and 45 deletions
+1 -1
View File
@@ -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;