mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
Cache lines in Lexer and show original input when running into an error
This commit is contained in:
@ -50,6 +50,12 @@ bool MockParserLineStream::IncludeFile(const std::string& filename)
|
||||
return true;
|
||||
}
|
||||
|
||||
void MockParserLineStream::PopCurrentFile()
|
||||
{
|
||||
if (!m_include_positions.empty())
|
||||
m_include_positions.pop_back();
|
||||
}
|
||||
|
||||
bool MockParserLineStream::IsOpen() const
|
||||
{
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user