Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Report error when comma is missing in comma delimited regions. #101

Merged
merged 1 commit into from
Aug 12, 2020

Conversation

IwanKaramazow
Copy link
Contributor

When a comma is missing between nodes in a region and the current token looks like the start of something valid in the current region, we should report an error with regards to the missing comma.

Example:

type student<'extraInfo> = {
  name: string,
  age: int                     // <-------- comma is missing
  otherInfo: 'extraInfo
}

There is a missing comma between int and otherInfo.
otherInfo looks like a valid start of the record declaration.
We report the error here of the missing comma and then continue parsing the region.

Fixes #100

When a comma is missing between nodes in a region and the current token looks like the start of something valid in the current region, we should report an error with regards to the missing comma.

Example:
  type student<'extraInfo> = {
    name: string,
    age: int
    otherInfo: 'extraInfo
  }
There is a missing comma between `int` and `otherInfo`.
`otherInfo` looks like a valid start of the record declaration.
We report the error here and then continue parsing the region.

Fixes #100
@IwanKaramazow IwanKaramazow merged commit 631cfff into master Aug 12, 2020
@IwanKaramazow IwanKaramazow deleted the ErrorOnNoCommaInRegion branch August 12, 2020 20:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can use a dot instead of a comma
1 participant