This commit is contained in:
Бондарев Иван 2018-07-18 21:06:52 +02:00
parent 79e99d3661
commit c0275c4d7f
2 changed files with 3 additions and 2 deletions

View file

@ -413,8 +413,8 @@ namespace GPPGParserScanner
method_call mc = new method_call();
mc.dereferencing_value = new dot_node(new ident("string", str.source_context), new ident("Format", str.source_context), str.source_context);
mc.parameters = new expression_list();
//string[] arr = Regex.Split(str.Value, @"\{[\w\d._]+\}");
//Match match = Regex.Match(str.Value, @"\{[\w\d._]+\}");
if (!str.Value.Contains("{"))
return str;
string val = str.Value.Replace("{{","![&").Replace("}}}","}&]!").Replace("}}", "&]!");
string[] arr = Regex.Split(val, @"\{[^\}]+\}");
Match match = Regex.Match(val, @"\{[^\}]+\}");

View file

@ -8,4 +8,5 @@
assert(s = '2,3,4');
s := $'{a+1},{b+1},{c+1}';
assert(s = '3,4,5');
assert($'abc'=$'abc');
end.