Last active
December 31, 2015 00:19
-
-
Save unak/7906475 to your computer and use it in GitHub Desktop.
※あとで消す 第2版。手抜き。ripper用コードはあってるかどうか知らん。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: defs/id.def | |
=================================================================== | |
--- defs/id.def (リビジョン 44137) | |
+++ defs/id.def (作業コピー) | |
@@ -1,5 +1,6 @@ | |
# -*- mode: ruby; coding: us-ascii -*- | |
firstline, predefined = __LINE__+1, %[\ | |
+ class | |
freeze | |
inspect | |
intern | |
Index: parse.y | |
=================================================================== | |
--- parse.y (リビジョン 44137) | |
+++ parse.y (作業コピー) | |
@@ -3032,6 +3032,14 @@ | |
$$ = $1; | |
%*/ | |
} | |
+ | keyword_class | |
+ { | |
+ /*%%%*/ | |
+ $$ = NEW_FCALL(idClass, 0); | |
+ /*% | |
+ $$ = method_arg(dispatch1(fcall, idClass), arg_new()); | |
+ %*/ | |
+ } | |
; | |
k_begin : keyword_begin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment