intersystems / intersystems/language-server

bug: false error in for statement

Open
#402 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
21
Forks
12
Avg merge
1d 23h
Merged PRs (30d)
8

Description

Getting an error on a valid for statement that has an inline block comment in between the keyword and expression. For example:
Image

but it shouldn't be an error, as it compiles and executes:

Image

I think this parser automatically classifies this as an argumentless statement, so then when it sees the expression it thinks there is an error, but in this case that comment is allowed in between the keyword and expression, and it should still classify it as a statement with an argument (condition).

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.