Fixed issue #1010 that allows statements with commas.

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>
fixed whitespaces
Merge pull request #1015 from guyzmo/1010

Fixed issue #1010 that allows statements with commas.