puppetlabs/puppet — pull request #2018 by yath (2013-10-30 20:46:32+00:00)
Title: Fix commentstack when parsing hashes

We need to pop from commentstack in the grammar whenever we parse a
hash; an LBRACE pushes to commentstack, yet an AST::ASTHash does not
have a doc string which would get the comment popped from the stack
again. This left an extra item on the commentstack which caused all
subsequent Lexer#getcomment to return "".

This fixes (at least) #20122.