Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Implement error recovery for directive tokens #1173

Closed
@rynowak

Description

@rynowak

We're not strict enough with error detection for directive tokens - for example

@custom global::Some_Namespace

If the custom directive expects a namespace, it will parse the global token, and then fail because the ::Some_Namespace` token remains. If instead, another token was part of the directive that could consume this text, it was parse correctly.

So, that means that tokens are allowed to run together, and we don't prevent it today.

We also need to implement error recovery for tokens universally.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions