Skip to content

Instantly share code, notes, and snippets.

@silentbicycle
Created November 11, 2012 21:13
Show Gist options
  • Save silentbicycle/4056292 to your computer and use it in GitHub Desktop.
Save silentbicycle/4056292 to your computer and use it in GitHub Desktop.
more ruby parser brittleness
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