small adjustments to Prolog grammar

- fixed greedy eating of newline for one-line comments
- s/.prolog/.source.prolog/g
- function name detection