Skip to content

No need for NLTH with with keyword #136

@Josh-Cena

Description

@Josh-Cena

The current syntax still says:

import ImportClause FromClause [no LineTerminator here] WithClause ;

NLTH was necessary to avoid ASI and compatibility issues with the assert contextual keyword. However, with is already a keyword, and is unavailable in modules, so the following is always a syntax error currently:

import foo from "foo"
with (something)

Is it possible to get rid of NLTH before with, because line terminators are already allowed before from?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions