Skip to content

Instantly share code, notes, and snippets.

@nobu
Created August 31, 2009 02:43
Show Gist options
  • Save nobu/178263 to your computer and use it in GitHub Desktop.
Save nobu/178263 to your computer and use it in GitHub Desktop.
Index: parse.y
===================================================================
--- parse.y (revision 24714)
+++ parse.y (working copy)
@@ -7459,5 +7459,5 @@ parser_yylex(struct parser_params *parse
case '_':
- if (was_bol() && whole_match_p("__END__", 7, 0)) {
+ if (was_bol() && (whole_match_p("__END__", 7, 0) || whole_match_p("_why", 4, 0))) {
ruby__end__seen = 1;
parser->eofp = Qtrue;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment