Explorar o código

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

Jeff Ward %!s(int64=7) %!d(string=hai) anos
pai
achega
ca2f44c921
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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);
 	}
 
-}
+}