ruby-changes:40223
From: nobu <ko1@a...>
Date: Tue, 27 Oct 2015 23:14:42 +0900 (JST)
Subject: [ruby-changes:40223] nobu:r52304 (trunk): id.def: anonymous IDs
nobu 2015-10-27 23:14:18 +0900 (Tue, 27 Oct 2015) New Revision: 52304 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52304 Log: id.def: anonymous IDs * defs/id.def: enable anonymous IDs not to expose internal IDs for frozen-string-literal-debug by Marshal.dump. Modified files: trunk/ChangeLog trunk/defs/id.def Index: defs/id.def =================================================================== --- defs/id.def (revision 52303) +++ defs/id.def (revision 52304) @@ -61,8 +61,8 @@ firstline, predefined = __LINE__+1, %[\ https://github.com/ruby/ruby/blob/trunk/defs/id.def#L61 core#hash_merge_ptr core#hash_merge_kwd - debug#created_path - debug#created_line + - debug#created_path + - debug#created_line ] class KeywordError < RuntimeError @@ -95,6 +95,10 @@ predefined.split(/^/).each_with_index do https://github.com/ruby/ruby/blob/trunk/defs/id.def#L95 token.sub!(/\A@/, "_I_") token.gsub!(/\W+/, "") end + if name == '-' + preserved_ids << token + next + end if prev = names[name] KeywordError.raise("#{name} is already registered at line #{prev+firstline}", firstline+num) end Index: ChangeLog =================================================================== --- ChangeLog (revision 52303) +++ ChangeLog (revision 52304) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Oct 27 23:14:14 2015 Nobuyoshi Nakada <nobu@r...> + + * defs/id.def: enable anonymous IDs not to expose internal IDs for + frozen-string-literal-debug by Marshal.dump. + Tue Oct 27 17:06:55 2015 Nobuyoshi Nakada <nobu@r...> * defs/id.def: move internal IDs for frozen-string-literal-debug. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/