Skip to content

Commit

Permalink
* parse.y (magic_comment_encoding): ignores unused emacs-style
Browse files Browse the repository at this point in the history
  encoding comment, as like Vim styles.  [ruby-core:23470]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed May 16, 2009
1 parent 78e376a commit f292353
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Sat May 16 09:30:14 2009 Nobuyoshi Nakada <[email protected]>
Sat May 16 09:49:05 2009 Nobuyoshi Nakada <[email protected]>

* parse.y (magic_comment_encoding): ignores unused emacs-style
encoding comment, as like Vim styles. [ruby-core:23470]

* defs/keywords (reserved_word): made inline function static.
[ruby-core:23210]
Expand Down
2 changes: 0 additions & 2 deletions parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -6100,8 +6100,6 @@ static void
magic_comment_encoding(struct parser_params *parser, const char *name, const char *val)
{
if (!comment_at_top(parser)) {
rb_warningS("encoding '%s' is ignored, valid only in the first line except for shebang line.",
val);
return;
}
parser_set_encode(parser, val);
Expand Down

0 comments on commit f292353

Please sign in to comment.