diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-25 15:49:17 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-25 15:49:17 +0000 |
| commit | df30a8f74552f3937b33bed3b8de3602cfe1dde0 (patch) | |
| tree | 68183327e769b646c7ea175a2193b4b38d350ad4 | |
| parent | c079210c9e741c1f5b05148dec72c77bcbaa1f50 (diff) | |
| download | ruby-df30a8f74552f3937b33bed3b8de3602cfe1dde0.tar.gz ruby-df30a8f74552f3937b33bed3b8de3602cfe1dde0.tar.xz ruby-df30a8f74552f3937b33bed3b8de3602cfe1dde0.zip | |
* parse.y (primary): not operand might be empty. [ruby-dev:35227]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | parse.y | 8 |
2 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Thu Jun 26 00:48:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * parse.y (primary): not operand might be empty. [ruby-dev:35227] + Wed Jun 25 21:54:34 2008 Yukihiro Matsumoto <matz@ruby-lang.org> * parse.y (primary): make functional-style not operator to act @@ -2621,6 +2621,14 @@ primary : literal $$ = dispatch2(unary, ripper_intern("not"), $3); %*/ } + | keyword_not '(' rparen + { + /*%%%*/ + $$ = NEW_LIT(Qtrue); + /*% + $$ = dispatch2(unary, ripper_intern("not"), Qnil); + %*/ + } | operation brace_block { /*%%%*/ |
