From 1783f0010b79836d1e46da9fcb5313ba00cf6629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D0=BD=D0=B4=D0=B0=D1=80=D0=B5=D0=B2=20=D0=98?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD?= Date: Sun, 19 Aug 2018 14:26:25 +0200 Subject: [PATCH] fix #1052 --- Parsers/PascalABCParserNewSaushkin/SemanticRules.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parsers/PascalABCParserNewSaushkin/SemanticRules.cs b/Parsers/PascalABCParserNewSaushkin/SemanticRules.cs index 0b28c77d0..58a60def3 100644 --- a/Parsers/PascalABCParserNewSaushkin/SemanticRules.cs +++ b/Parsers/PascalABCParserNewSaushkin/SemanticRules.cs @@ -432,7 +432,7 @@ namespace GPPGParserScanner { string s = match.Value.Replace("{", "").Replace("}", ""); int colon_pos = s.IndexOf(':'); - if (colon_pos != -1) + if (colon_pos != -1 && s.IndexOf('?') == -1) { var_formats.Add(ind, s.Substring(colon_pos)); s = s.Substring(0, colon_pos);