Ver código fonte

Allow comments after single key objects

Daniele Bartolini 11 anos atrás
pai
commit
d0352c072f
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      engine/core/json/json.cpp

+ 2 - 1
engine/core/json/json.cpp

@@ -471,7 +471,8 @@ namespace json
 
 
 				ch = skip_value(ch);
 				ch = skip_value(ch);
 				ch = skip_whites(ch);
 				ch = skip_whites(ch);
-
+				ch = skip_comments(ch);
+				
 				if ((*ch) == '}')
 				if ((*ch) == '}')
 				{
 				{
 					next(ch, '}');
 					next(ch, '}');