Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7693578
* version.h (RUBY_VERSION): bump RUBY_VERSION to 2.1.4.
nagachika Sep 23, 2014
77ce45d
merge revision(s) r47111,r47212,r47451,r47452,r47680: [Backport #10245]
nagachika Sep 23, 2014
c8ec78c
merge revision(s) r47683: [Backport #10281]
nagachika Sep 23, 2014
ee69bb4
merge revision(s) r47641,r47642,r47644: [Backport #10262]
nagachika Sep 23, 2014
2ccf728
merge revision(s) r47696,r47697: [Backport #10279]
nagachika Sep 23, 2014
309b930
merge revision(s) r47820: [Backport #10330]
nagachika Oct 15, 2014
9ecfc87
merge revision(s) r47819: [Backport #9914]
nagachika Oct 15, 2014
b1c5f7e
merge revision(s) r47850: [Backport #10294]
nagachika Oct 15, 2014
22a193f
merge revision(s) r47891: [Backport #10373]
nagachika Oct 15, 2014
a50794d
merge revision(s) r47896: [Backport #10369]
nagachika Oct 15, 2014
39fcf33
merge revision(s) r45715: [Backport #10265]
nagachika Oct 15, 2014
b3cfa2f
merge revision(s) r46783: [Backport #6716]
nagachika Oct 15, 2014
8bdf68d
merge r47598 partially. extracted commits are as follows. [Bug #9728]
nagachika Oct 15, 2014
69fe55a
* 2014-10-16
matzbot Oct 15, 2014
982aab0
merge revision(s) r47818,r47832: [Backport #9820]
nagachika Oct 15, 2014
d396f66
merge revision(s) r47715: [Backport #10282]
nagachika Oct 15, 2014
90c3ddc
merge revision(s) r47900: [Backport #10035]
nagachika Oct 15, 2014
dac945b
merge revision(s) r47645: [Backport #10263]
nagachika Oct 16, 2014
2d17e3a
merge revision(s) r47716: [Backport #10285]
nagachika Oct 16, 2014
3ec2fe7
merge revision(s) r47973: [Backport #10392]
nagachika Oct 18, 2014
06ce3b7
merge revision(s) r48000: [Backport #10368]
nagachika Oct 18, 2014
5a58165
merge revision(s) r45274,r45278,r45280,r48097: [Backport #9424] [Back…
nagachika Oct 22, 2014
a7a045f
merge revision(s) r48102: [Backport #10413]
nagachika Oct 25, 2014
d841eef
merge revision(s) r48111,r48118,r48120: [Backport #10421]
nagachika Oct 25, 2014
31d25ce
merge revision(s) r48161:
nagachika Oct 27, 2014
e966a41
add tag v2_1_4
nagachika Oct 27, 2014
25de41c
Merge tag 'v2_1_4' into dbussink-ruby-2-1-4
dbussink Nov 11, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
merge revision(s) r47696,r47697: [Backport ruby#10279]
	* parse.y (parse_ident): just after a label, new expression should
	  start, cannot be a modifier.  [ruby-core:65211] [Bug ruby#10279]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nagachika committed Sep 23, 2014
commit 2ccf72827a05afb9fb8c9e60c3fb1a72ff177250
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Wed Sep 24 02:30:55 2014 Nobuyoshi Nakada <[email protected]>

* parse.y (parse_ident): just after a label, new expression should
start, cannot be a modifier. [ruby-core:65211] [Bug #10279]

Wed Sep 24 02:21:41 2014 NAKAMURA Usaku <[email protected]>

* win32/Makefile.sub (VCSUP): nothing to do if this worktree is not
Expand Down
2 changes: 1 addition & 1 deletion parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -8195,7 +8195,7 @@ parser_yylex(struct parser_params *parser)
return keyword_do_block;
return keyword_do;
}
if (IS_lex_state_for(state, (EXPR_BEG | EXPR_VALUE)))
if (IS_lex_state_for(state, (EXPR_BEG | EXPR_VALUE | EXPR_LABELARG)))
return kw->id[0];
else {
if (kw->id[0] != kw->id[1])
Expand Down
14 changes: 14 additions & 0 deletions test/ruby/test_keyword.rb
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,9 @@ def test_required_keyword
assert_equal([[:keyreq, :a], [:keyrest, :b]], o.method(:bar).parameters, feature7701)
assert_raise_with_message(ArgumentError, /missing keyword/, bug8139) {o.bar(c: bug8139)}
assert_raise_with_message(ArgumentError, /missing keyword/, bug8139) {o.bar}
end

def test_required_keyword_with_newline
bug9669 = '[ruby-core:61658] [Bug #9669]'
assert_nothing_raised(SyntaxError, bug9669) do
eval(<<-'end;', nil, __FILE__, __LINE__)
Expand All @@ -335,6 +337,7 @@ def bug9669.foo a:
end;
end
assert_equal(42, bug9669.foo(a: 42))
o = nil
assert_nothing_raised(SyntaxError, bug9669) do
eval(<<-'end;', nil, __FILE__, __LINE__)
o = {
Expand All @@ -346,6 +349,17 @@ def bug9669.foo a:
assert_equal({a: 1}, o, bug9669)
end

def test_required_keyword_with_reserved
bug10279 = '[ruby-core:65211] [Bug #10279]'
h = nil
assert_nothing_raised(SyntaxError, bug10279) do
break eval(<<-'end;', nil, __FILE__, __LINE__)
h = {a: if true then 42 end}
end;
end
assert_equal({a: 42}, h, bug10279)
end

def test_block_required_keyword
feature7701 = '[ruby-core:51454] [Feature #7701] required keyword argument'
b = assert_nothing_raised(SyntaxError, feature7701) do
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.1.4"
#define RUBY_RELEASE_DATE "2014-09-24"
#define RUBY_PATCHLEVEL 246
#define RUBY_PATCHLEVEL 247

#define RUBY_RELEASE_YEAR 2014
#define RUBY_RELEASE_MONTH 9
Expand Down