Fixed Suffix in Parse Block

This commit is contained in:
ruri
2019-04-01 18:33:37 +02:00
parent 4ff1a9a78b
commit 7656aa38a7
+6 -5
View File
@@ -181,11 +181,12 @@ namespace RuriLib
catch { throw new ArgumentException("Variable name not specified"); }
// Parse the prefix and suffix
if (LineParser.ParseToken(ref input, TokenType.Literal, false, false) == "")
return this;
Prefix = LineParser.ParseLiteral(ref input, "PREFIX");
Suffix = LineParser.ParseLiteral(ref input, "SUFFIX");
try
{
Prefix = LineParser.ParseLiteral(ref input, "PREFIX");
Suffix = LineParser.ParseLiteral(ref input, "SUFFIX");
}
catch { }
return this;
}