improve keyword-related parser errors (#1941)
authorAlex Lam S.L <alexlamsl@gmail.com>
Mon, 15 May 2017 15:02:55 +0000 (23:02 +0800)
committerGitHub <noreply@github.com>
Mon, 15 May 2017 15:02:55 +0000 (23:02 +0800)
commit265008c94870365feeb7dcdd6572b893e1fc0889
treee57bfec707ae85ebb9e766d8120d4887e28d8d40
parentff526be61d3af128c59013e2963b5861645badb7
improve keyword-related parser errors (#1941)

fixes #1937
lib/parse.js
test/input/invalid/else.js [new file with mode: 0644]
test/input/invalid/return.js [new file with mode: 0644]
test/mocha/cli.js