diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 02:31:11 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 02:31:11 +0000 |
commit | 4cf437519f1cbefed5ad7ee2bf0e68857105823f (patch) | |
tree | 735cc60c2165cefab0d4cf11cd399e73f8c47f82 /parse.y | |
parent | 817a4e3c83fd830b93c286159e97a18654db1c35 (diff) | |
download | ruby-4cf437519f1cbefed5ad7ee2bf0e68857105823f.tar.gz |
* regerror.c, string.c, io.c, lib/getoptlong.rb, lib/net/imap.rb,
compile.c, sprintf.c, parse.y, ext/win32ole/win32ole.c,
ext/tk/sample/demos-en/entry3.rb, ext/tk/lib/tcltk.rb,
ext/openssl/ossl_bn.c, numeric.c, vm.c,
benchmark/bm_so_meteor_contest.rb, bignum.c, ruby.c: don't "illegal"
for non law violation context.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4999,7 +4999,7 @@ parser_tokadd_utf8(struct parser_params *parser, rb_encoding **encp, return 0; } if (codepoint > 0x10ffff) { - yyerror("illegal Unicode codepoint (too large)"); + yyerror("invalid Unicode codepoint (too large)"); return 0; } lex_p += numlen; @@ -5287,7 +5287,7 @@ parser_tokadd_mbchar(struct parser_params *parser, int c) { int len = parser_precise_mbclen(); if (!MBCLEN_CHARFOUND(len)) { - compile_error(PARSER_ARG "illegal multibyte char"); + compile_error(PARSER_ARG "invalid multibyte char"); return -1; } tokadd(c); |