(#20122) Extend parser_spec for comment spec test

Make the test for "comments before statement" contain a more complex
example; the bug in fixed in f104400 was only triggered when using
a hash.