Created
November 11, 2012 21:13
-
-
Save silentbicycle/4056292 to your computer and use it in GitHub Desktop.
more ruby parser brittleness
This file contains 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
def this_is_okay | |
{ | |
:a => "b" | |
} | |
end | |
def this_is_too | |
yield ({ | |
:a => "b" | |
}) | |
end | |
def this_is_not | |
yield { | |
:a => "b" | |
} | |
end | |
# wat.rb:14: syntax error, unexpected '{' | |
# wat.rb:16: syntax error, unexpected '}', expecting keyword_end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment