Why are there braces?

This commit is contained in:
gamax92 2014-07-07 19:30:36 -06:00
parent 87f6262230
commit 0f6a405d12

View File

@ -539,23 +539,21 @@ public class LexState {
continue; continue;
case EOZ: case EOZ:
continue; /* will raise an error next loop */ continue; /* will raise an error next loop */
case 'z': { /* zap following span of spaces */ case 'z': /* zap following span of spaces */
nextChar(); /* skip the 'z' */ nextChar(); /* skip the 'z' */
while (isspace(current)) { while (isspace(current)) {
if (currIsNewline()) inclinenumber(); if (currIsNewline()) inclinenumber();
else nextChar(); else nextChar();
} }
continue; continue;
}
case '\\': case '\\':
case '"': case '"':
case '\'': case '\'':
save_and_next(); save_and_next();
continue; continue;
default: { default:
if (!isdigit(current)) { if (!isdigit(current))
syntaxerror("invalid escape sequence near '\\" + ((char) current) + "'"); syntaxerror("invalid escape sequence near '\\" + ((char) current) + "'");
}
else { /* \xxx */ else { /* \xxx */
int i = 0; int i = 0;
c = 0; c = 0;
@ -569,7 +567,6 @@ public class LexState {
} }
continue; continue;
} }
}
save(c); save(c);
nextChar(); nextChar();
continue; continue;