mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Treat commas in scripts as whitespace
This commit is contained in:
parent
9a00984561
commit
bee94e2afc
12 changed files with 36 additions and 101 deletions
|
@ -14,13 +14,7 @@ namespace Compiler
|
|||
|
||||
class StringParser : public Parser
|
||||
{
|
||||
enum State
|
||||
{
|
||||
StartState, CommaState
|
||||
};
|
||||
|
||||
Literals& mLiterals;
|
||||
State mState;
|
||||
std::vector<Interpreter::Type_Code> mCode;
|
||||
bool mSmashCase;
|
||||
TokenLoc mTokenLoc;
|
||||
|
@ -39,10 +33,6 @@ namespace Compiler
|
|||
///< Handle a keyword token.
|
||||
/// \return fetch another token?
|
||||
|
||||
bool parseSpecial (int code, const TokenLoc& loc, Scanner& scanner) override;
|
||||
///< Handle a special character token.
|
||||
/// \return fetch another token?
|
||||
|
||||
bool parseInt (int value, const TokenLoc& loc, Scanner& scanner) override;
|
||||
///< Handle an int token.
|
||||
/// \return fetch another token?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue