From b033cb6f7d029fa0d8190e8ebd12f0ed81570803 Mon Sep 17 00:00:00 2001 From: Alexander Luzgarev Date: Sun, 1 Apr 2018 19:38:57 +0200 Subject: [PATCH] Parse extra comma/semicolon at the end of cell array --- Parser/MParser.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Parser/MParser.cs b/Parser/MParser.cs index 98dd394..68c1179 100644 --- a/Parser/MParser.cs +++ b/Parser/MParser.cs @@ -385,7 +385,11 @@ namespace Parser } } - nodes.Add(ParseExpression(new ParseOptions {ParsingArrayElements = true})); + var expression = ParseExpression(new ParseOptions {ParsingArrayElements = true}); + if (expression != null) + { + nodes.Add(expression); + } } return Factory.ArrayElementList(nodes);