diff options
author | Saracen <SaracenOne@gmail.com> | 2015-11-18 23:18:10 +0000 |
---|---|---|
committer | Saracen <SaracenOne@gmail.com> | 2015-11-18 23:18:10 +0000 |
commit | dd00452997122029dd2f74a278574d781fd2bf5f (patch) | |
tree | e36f0c62cac499500724c2929100c042972d1a5c /core/io/json.cpp | |
parent | c1d19ad258139c73e7aa81cf6e1fbd99e1bfe38b (diff) | |
parent | 94fdd01241749cb7a575ed5f9fa4c7bbb286901a (diff) |
Merge branch 'master' of https://github.com/okamstudio/godot into shadow_color
Conflicts:
drivers/gles2/shader_compiler_gles2.cpp
Diffstat (limited to 'core/io/json.cpp')
-rw-r--r-- | core/io/json.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/io/json.cpp b/core/io/json.cpp index 14890abd26..22c99d0465 100644 --- a/core/io/json.cpp +++ b/core/io/json.cpp @@ -177,9 +177,6 @@ Error JSON::_get_token(const CharType *p_str, int &idx, int p_len, Token& r_toke case 'n': res=10; break; case 'f': res=12; break; case 'r': res=13; break; - case '\"': res='\"'; break; - case '\\': res='\\'; break; - case '/': res='/'; break; //wtf case 'u': { //hexnumbarh - oct is deprecated @@ -218,10 +215,13 @@ Error JSON::_get_token(const CharType *p_str, int &idx, int p_len, Token& r_toke } break; + //case '\"': res='\"'; break; + //case '\\': res='\\'; break; + //case '/': res='/'; break; default: { - - r_err_str="Invalid escape sequence"; - return ERR_PARSE_ERROR; + res = next; + //r_err_str="Invalid escape sequence"; + //return ERR_PARSE_ERROR; } break; } |