summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-03-12 07:14:32 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-03-12 07:14:32 -0700
commitd0fb6d00a2f6d0cb67f513ae8519e752f531def7 (patch)
treeb0effb5d131ca515e02e6f6391eba7ee8f9ee5ae /src
parent9cfaa378104cd0063345b174661139a989b06559 (diff)
parentd62f497bddc45070490b98c3bf3c67caf9b1d80c (diff)
downloadmruby-d0fb6d00a2f6d0cb67f513ae8519e752f531def7.tar.gz
mruby-d0fb6d00a2f6d0cb67f513ae8519e752f531def7.zip
Merge pull request #983 from monaka/pr-fix-indent-in-parse.y-20130312
Fix indents in parse.y.
Diffstat (limited to 'src')
-rw-r--r--src/parse.y20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/parse.y b/src/parse.y
index 62393a0bb..5c49db07e 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -3457,19 +3457,19 @@ read_escape(parser_state *p)
case '0': case '1': case '2': case '3': /* octal constant */
case '4': case '5': case '6': case '7':
{
- int buf[3];
- int i;
+ int buf[3];
+ int i;
- buf[0] = c;
- for (i=1; i<3; i++) {
+ buf[0] = c;
+ for (i=1; i<3; i++) {
buf[i] = nextc(p);
if (buf[i] == -1) goto eof;
- if (buf[i] < '0' || '7' < buf[i]) {
- pushback(p, buf[i]);
- break;
- }
- }
- c = scan_oct(buf, i, &i);
+ if (buf[i] < '0' || '7' < buf[i]) {
+ pushback(p, buf[i]);
+ break;
+ }
+ }
+ c = scan_oct(buf, i, &i);
}
return c;