mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
changed <line> semantics, usage is now <line>\n</line>
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@149 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -247,9 +247,9 @@ void TokenIterator::readStringToken() {
|
||||
// escape
|
||||
if (pos >= input.size()) throw ScriptParseError(_("Unexpected end of input in string constant"));
|
||||
c = input.GetChar(pos++);
|
||||
if (c == _('n')) str += _('\n');
|
||||
if (c == _('<')) str += _('\1'); // escape for <
|
||||
else str += c; // \ or { or "
|
||||
if (c == _('n')) str += _('\n');
|
||||
else if (c == _('<')) str += _('\1'); // escape for <
|
||||
else str += c; // \ or { or "
|
||||
} else if (c == _('{')) {
|
||||
// smart string
|
||||
// "a{e}b" --> "a" "{ e }" "b"
|
||||
|
||||
Reference in New Issue
Block a user