google / google/CodeCity

Syntax checking should parse text as Expression, not as Program

Open
#397 0 comments 0 reactions 0 assignees View on GitHub
/code bug
Dominant language
JavaScript
Stars
198
Forks
38
PR merge metrics
No merged PRs in 30d

Description

Acorn, as currently configured, syntax checks editor text as if it is a JavaScript Program rather than Expression. This leads to bogus warnings, e.g.:

![Screenshot 2020-06-23 at 12 19 59 (2)](https://user-images.githubusercontent.com/5603958/85398211-c7a76600-b54c-11ea-81d6-1fe010cb5287.png)

![Screenshot 2020-06-23 at 12 17 22 (2)](https://user-images.githubusercontent.com/5603958/85398212-c9712980-b54c-11ea-86e9-fd95b78d3c8d.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.