2
0
Эх сурвалжийг харах

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

Jeff Ward 7 жил өмнө
parent
commit
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);
 	}
 
-}
+}