diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-02-24 04:31:29 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-02-24 04:31:29 +0000 |
commit | 3976feed73bf4ec27183824870ee077c2b5b00b1 (patch) | |
tree | cb461ab9246a2c8e13d373a8c2d2e6378e4db9cc /parse.y | |
parent | 51fa86ece2d2b0f72c86c70fe1314e412c7a9e68 (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.y | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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); |