summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-05-06 08:31:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-05-06 08:31:50 +0000
commite8505b64725b10f92e828d289ad0995bb23c1c8a (patch)
tree5c256f0d6b5f496ef0b348c4d3ebdb2988ba7e2b /parse.y
parentcae09e71e575608c039212d8b1273bd14695f88c (diff)
small fixes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y7
1 files changed, 6 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 75bc6b59cf..cabced742b 100644
--- a/parse.y
+++ b/parse.y
@@ -2050,7 +2050,7 @@ parse_regx(term, paren)
options |= RE_OPTION_EXTENDED;
break;
case 'p':
- options |= RE_OPTION_POSIX;
+ options |= RE_OPTION_POSIXLINE;
break;
case 'o':
once = 1;
@@ -2142,6 +2142,8 @@ parse_string(func, term, paren)
}
else if (c == '\\') {
c = nextc();
+ if (c == '\n')
+ continue;
if (c == term) {
tokadd(c);
}
@@ -2213,6 +2215,9 @@ parse_qstring(term, paren)
else if (c == '\\') {
c = nextc();
switch (c) {
+ case '\n':
+ continue;
+
case '\\':
c = '\\';
break;