summaryrefslogtreecommitdiff
path: root/jsmn.c
diff options
context:
space:
mode:
authorSerge A. Zaitsev <zaitsev.serge@gmail.com>2014-01-27 15:58:43 +0200
committerSerge A. Zaitsev <zaitsev.serge@gmail.com>2014-01-27 15:58:43 +0200
commit40392b73e3f3048e10f1338f7ab9b5e47a8aa08e (patch)
treeaef0f3a9855e15ab93f219f7de96033ccacc3003 /jsmn.c
parent07af5df94bd672ffd57428fc615c784e580b9fba (diff)
fixed indentation and comments style after merge
Diffstat (limited to 'jsmn.c')
-rw-r--r--jsmn.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/jsmn.c b/jsmn.c
index 1091b9509..4f70adb0d 100644
--- a/jsmn.c
+++ b/jsmn.c
@@ -116,19 +116,19 @@ static jsmnerr_t jsmn_parse_string(jsmn_parser *parser, const char *js,
break;
/* Allows escaped symbol \uXXXX */
case 'u':
- parser->pos++;
- int i=0;
- for(;i<4&&js[parser->pos] != '\0';i++) {
- // If it isn't a hex character we have an error
- if(!((js[parser->pos] >= 48 && js[parser->pos] <= 57) || // 0-9
- (js[parser->pos] >= 65 && js[parser->pos] <= 70) || // A-F
- (js[parser->pos] >= 97 && js[parser->pos] <= 102))) { // a-f
- parser->pos = start;
- return JSMN_ERROR_INVAL;
- }
- parser->pos++;
- }
- parser->pos--;
+ parser->pos++;
+ int i = 0;
+ for(; i < 4 && js[parser->pos] != '\0'; i++) {
+ /* If it isn't a hex character we have an error */
+ if(!((js[parser->pos] >= 48 && js[parser->pos] <= 57) || /* 0-9 */
+ (js[parser->pos] >= 65 && js[parser->pos] <= 70) || /* A-F */
+ (js[parser->pos] >= 97 && js[parser->pos] <= 102))) { /* a-f */
+ parser->pos = start;
+ return JSMN_ERROR_INVAL;
+ }
+ parser->pos++;
+ }
+ parser->pos--;
break;
/* Unexpected symbol */
default: