summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-02-24 04:31:29 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-02-24 04:31:29 +0000
commit3976feed73bf4ec27183824870ee077c2b5b00b1 (patch)
treecb461ab9246a2c8e13d373a8c2d2e6378e4db9cc /parse.y
parent51fa86ece2d2b0f72c86c70fe1314e412c7a9e68 (diff)
990224
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y12
1 files changed, 12 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 899b08c3c4..6f654dfb2b 100644
--- a/parse.y
+++ b/parse.y
@@ -2475,6 +2475,11 @@ retry:
}
}
}
+ else if (c >= 0x80) {
+ if ((c = nextc()) != '\\') {
+ pushback(c);
+ }
+ }
}
/* fall through */
case '\n':
@@ -3185,6 +3190,13 @@ retry:
}
if ((c == '!' || c == '?') && is_identchar(tok()[0])) {
tokadd(c);
+ if (c == '!') {
+ c = nextc();
+ if (c == '=') {
+ rb_warn("identifier! immediately followed by `='");
+ }
+ pushback(c);
+ }
}
else {
pushback(c);