summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 02:31:11 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 02:31:11 +0000
commit15c84d07d3db4ae74bc93b7442bd7fed1d3f31b7 (patch)
tree735cc60c2165cefab0d4cf11cd399e73f8c47f82 /parse.y
parente2e973ceeb62d5ecf87e45128bbe985d27227fda (diff)
downloadruby-15c84d07d3db4ae74bc93b7442bd7fed1d3f31b7.tar.gz
ruby-15c84d07d3db4ae74bc93b7442bd7fed1d3f31b7.tar.xz
ruby-15c84d07d3db4ae74bc93b7442bd7fed1d3f31b7.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@14377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index e6833422d..4c206a8c3 100644
--- a/parse.y
+++ b/parse.y
@@ -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);