X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLexer.cpp;h=38465f92ed2aa7ebb33708a0a82b2bbfc2059335;hb=897436efbb9bd641b61467d185a2dfae9839e575;hp=4406d074977dbeb64ec4f02475a2eeb83104443f;hpb=0e64103f927443835005cda616db620f9b9e007b;p=features.git diff --git a/src/Lexer.cpp b/src/Lexer.cpp index 4406d07497..38465f92ed 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -417,7 +417,7 @@ bool Lexer::Pimpl::next(bool esc /* = false */) c = cc; // skip ','s - if (c == ',') + if (c == ',') continue; if (c == commentChar) { @@ -525,7 +525,7 @@ int Lexer::Pimpl::search_kw(char const * const tag) const int Lexer::Pimpl::lex() { //NOTE: possible bug. - if (next() && status == LEX_TOKEN) + if (next() && status == LEX_TOKEN) return search_kw(getString().c_str()); return status; } @@ -619,7 +619,7 @@ bool Lexer::Pimpl::nextToken() bool Lexer::Pimpl::inputAvailable() { - return is.good(); + return is.good(); } @@ -771,7 +771,7 @@ string const Lexer::getString() const docstring const Lexer::getDocString() const { lastReadOk_ = pimpl_->status == LEX_DATA || pimpl_->status == LEX_TOKEN; - + if (lastReadOk_) return pimpl_->getDocString();