haskell / happy

The Happy parser generator for Haskell
Other
286 stars 84 forks source link

[ fixed #161 ] .info: don't drop all parse items when printing a state #162

Closed andreasabel closed 4 years ago

andreasabel commented 4 years ago

Items that start with a dot are usually added by completion and thus redundant and dropped from the printout. However, if the initial item started with a dot, it should not be dropped, otherwise there will be no items left. Thus, should there be no items not starting with a dot, we print the initial item.