Fix: check if next statement is on newline when warning against extra semicolons. (fixes #1580)
Merge pull request #1581 from yyx990803/fix-extra-semicolon

Fix: check if next statement is on newline when warning against extra semicolons. (fixes #1580)