diff options
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | parse.y | 8 | ||||
| -rw-r--r-- | version.h | 6 |
3 files changed, 10 insertions, 10 deletions
@@ -1,3 +1,9 @@ +Sat Oct 13 00:00:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org> + + * parse.y: encoding specifier should work if the line matches + /coding[:=] ?/, a la Python PEP-263, so that VIM comments like + "# vim: set fileencoding=<encoding name>" should be recognized. + Fri Oct 12 15:04:54 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * trunk/parse.y (magic_comments): add "encoding" as same as "coding". @@ -5708,13 +5708,7 @@ set_file_encoding(struct parser_params *parser, const char *str, const char *sen if (ISSPACE(*str)) break; continue; } -#define BOW_P(p) ((p) == beg || !(ISALNUM((p)[-1]) || (p)[-1] == '_')) - if (strncasecmp(str-6, "coding", 6)) continue; - if (BOW_P(str-6)) break; - if (str - beg < 8) continue; - if (strncasecmp(str-8, "en", 2)) continue; - if (BOW_P(str-8)) break; -#undef BOW_P + if (strncasecmp(str-6, "coding", 6) == 0) break; } for (;;) { do { @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-10-12" +#define RUBY_RELEASE_DATE "2007-10-13" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20071012 +#define RUBY_RELEASE_CODE 20071013 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 10 -#define RUBY_RELEASE_DAY 12 +#define RUBY_RELEASE_DAY 13 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; |
