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:
parent
5901bf2190
commit
f86708bf37
@ -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:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user