Event handlers with trailing comments fail.
Created attachment 28615 [details] patch
In reviewing my patch, I discovered that someone else fixed the bug in parallel. This patch is a little better in that it consolidates the code.append()s into fewer calls.
Comment on attachment 28615 [details] patch LGTM
Assign to levin for landing.
Committed as r41880.