This commit is contained in:
Бондарев Иван 2018-08-19 14:26:25 +02:00
parent 8b4b333cd0
commit 1783f0010b

View file

@ -432,7 +432,7 @@ namespace GPPGParserScanner
{ {
string s = match.Value.Replace("{", "").Replace("}", ""); string s = match.Value.Replace("{", "").Replace("}", "");
int colon_pos = s.IndexOf(':'); int colon_pos = s.IndexOf(':');
if (colon_pos != -1) if (colon_pos != -1 && s.IndexOf('?') == -1)
{ {
var_formats.Add(ind, s.Substring(colon_pos)); var_formats.Add(ind, s.Substring(colon_pos));
s = s.Substring(0, colon_pos); s = s.Substring(0, colon_pos);