summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2014-04-30 12:23:28 +0900
committerNobuyoshi Nakada <[email protected]>2014-05-03 08:42:31 +0900
commit82fce52211f729c98bce1f4cd020157e56a4fd4d (patch)
tree160d10a5fa032a9a0f60292bb0917b63c5896eeb
parent854ae564a34910fe3bd13a83a3d4bfa10cf0d838 (diff)
downloadmruby-82fce52211f729c98bce1f4cd020157e56a4fd4d.tar.gz
mruby-82fce52211f729c98bce1f4cd020157e56a4fd4d.zip
fix char after `=end`
skips() advance after the string skipped.
-rw-r--r--src/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index 477305db4..082b49294 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -4204,7 +4204,7 @@ parser_yylex(parser_state *p)
yyerror(p, "embedded document meets end of file");
return 0;
}
- c = nextc_n(p, sizeof(end)-1);
+ c = nextc(p);
} while (!(c < 0 || isspace(c)));
goto retry;
}