Allow messageboxes arguments to have newline characters (bug #3836)

This commit is contained in:
Andrei Kortunov 2018-08-18 16:12:01 +04:00
parent dc9aedca7d
commit a560a9e00d
3 changed files with 34 additions and 5 deletions

View file

@ -39,6 +39,7 @@ namespace Compiler
TokenLoc mPutbackLoc;
bool mStrictKeywords;
bool mTolerantNames;
bool mIgnoreNewline;
public:
@ -126,6 +127,11 @@ namespace Compiler
void listKeywords (std::vector<std::string>& keywords);
///< Append all known keywords to \a keywords.
/// Treat newline character as a part of script command.
///
/// \attention This mode lasts only until the next keyword is reached.
void enableIgnoreNewlines();
/// Do not accept keywords in quotation marks anymore.
///
/// \attention This mode lasts only until the next newline is reached.