X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FLexer.cpp;h=108d26ba2caacd77194429203808638eeb6e6bcf;hb=2f71fca7df3c7149542cadf577395ecedf82bbf5;hp=008b0cc9620417395a933b23d46fe0a0358c1514;hpb=383490dde8c2f54d52eadfa85b3157e96a1cb5a2;p=lyx.git diff --git a/src/Lexer.cpp b/src/Lexer.cpp index 008b0cc962..108d26ba2c 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -173,7 +173,9 @@ void Lexer::Pimpl::printError(string const & message) const { string const tmpmsg = subst(message, "$$Token", getString()); lyxerr << "LyX: " << tmpmsg << " [around line " << lineno - << " of file " << to_utf8(makeDisplayPath(name)) << ']' << endl; + << " of file " << to_utf8(makeDisplayPath(name)) + << " current token: '" << getString() << "'" + << " context: '" << context << "']" << endl; } @@ -634,6 +636,7 @@ void Lexer::setCommentChar(char c) pimpl_->setCommentChar(c); } + int Lexer::lex() { return pimpl_->lex(); @@ -760,6 +763,7 @@ bool Lexer::getBool() const pimpl_->printError("Bad boolean `$$Token'. " "Use \"false\" or \"true\""); lastReadOk_ = false; + return false; }