浏览代码

Allow trailing comma in after a-node (#381)

Jeff Ward 7 年之前
父节点
当前提交
ca2f44c921
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      hxd/fmt/fbx/Parser.hx

+ 2 - 1
hxd/fmt/fbx/Parser.hx

@@ -100,6 +100,7 @@ class Parser {
 					}
 				}
 				props.push(floats == null ? PInts(ints) : PFloats(floats));
+				if (peek()==TColon) except(TColon); // Allow trailing ,
 				except(TBraceClose);
 				break;
 			default:
@@ -270,4 +271,4 @@ class Parser {
 		return new Parser().parseText(text);
 	}
 
-}
+}