1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Fix json5 parsing

This commit is contained in:
Ivan Savenko 2024-02-19 17:56:58 +02:00
parent 5901bf2190
commit f86708bf37

View File

@ -81,6 +81,7 @@ bool JsonParser::extractValue(JsonNode & node)
switch(input[pos])
{
case '\"':
case '\'':
return extractString(node);
case 'n':
return extractNull(node);
@ -93,6 +94,8 @@ bool JsonParser::extractValue(JsonNode & node)
case '[':
return extractArray(node);
case '-':
case '+':
case '.':
return extractFloat(node);
default:
{