mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
added 'string mode' to script parser; added Keyword and related classes
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@85 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -38,9 +38,9 @@ ScriptValueP OptionalScript::invoke(Context& ctx, bool open_scope) const {
|
||||
}
|
||||
}
|
||||
|
||||
void OptionalScript::parse(Reader& reader) {
|
||||
void OptionalScript::parse(Reader& reader, bool string_mode) {
|
||||
try {
|
||||
script = ::parse(unparsed);
|
||||
script = ::parse(unparsed, string_mode);
|
||||
} catch (const ParseError& e) {
|
||||
reader.warning(e.what());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user