mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
Why are there braces?
This commit is contained in:
parent
87f6262230
commit
0f6a405d12
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user