diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-13 10:13:40 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-13 10:13:40 +0000 |
commit | 20ed75a6399ca74786984b1d6ca7ccd21eb765cd (patch) | |
tree | 4cd38cd9d39213a9c9cb5e07a53bbf53da270506 | |
parent | a09a8ea86d8e9d163983f0a55adfa046010f35fc (diff) | |
download | ruby-20ed75a6399ca74786984b1d6ca7ccd21eb765cd.tar.gz |
* parse.y (token_info_pop): show source filename. [ruby-dev:36710]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | parse.y | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Mon Oct 13 19:07:52 2008 NARUSE, Yui <naruse@ruby-lang.org> + + * parse.y (token_info_pop): show source filename. [ruby-dev:36710] + Mon Oct 13 08:59:08 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp> * ext/win32ole/win32ole.c (load_conv_function51932): support @@ -4856,8 +4856,9 @@ token_info_pop(struct parser_params *parser, const char *token) if (token_info_has_nonspaces(parser, token) || ptinfo->nonspc) { /* SKIP */ goto finish; } - rb_warning("mismatched indentations: line %d:'%s' and line %d:'%s'", - ptinfo->linenum, ptinfo->token, linenum, token); + rb_compile_warning(ruby_sourcefile, linenum, + "mismatched indentations at '%s' with '%s' at %d", + token, ptinfo->token, ptinfo->linenum); finish: xfree(ptinfo); |