X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FLexer.h;h=5e87ebc78b546bfca08c10bb9ae2ce14d05d6769;hb=cf26d53e037cf59b5816cdb2f5c7d835b83d480a;hp=887f7f77fa55293e177b6aaa87602c667eef44ec;hpb=63844ddbf9974b252f6c988d354210d6f758cd22;p=lyx.git diff --git a/src/Lexer.h b/src/Lexer.h index 887f7f77fa..5e87ebc78b 100644 --- a/src/Lexer.h +++ b/src/Lexer.h @@ -18,7 +18,7 @@ #define LEXER_H #include "support/strfwd.h" - +#include namespace lyx { @@ -64,10 +64,10 @@ class Lexer { public: /// initialize Lexer with no special keywords. - Lexer(); + Lexer(); /// initialize Lexer with a bunch of keywords template Lexer(LexerKeyword (&table)[N]) - : pimpl_(0) { init(table, N); } + : pimpl_(0), lastReadOk_(false) { init(table, N); } /// ~Lexer(); @@ -137,9 +137,9 @@ public: /// double getFloat() const; /// - std::string const getString() const; + std::string const getString(bool trim = false) const; /// - docstring const getDocString() const; + docstring const getDocString(bool trim = false) const; /** Get a long string, ended by the tag `endtag'. This string can span several lines. The first line serves as a template for how many spaces the lines