Skip to content

No context for unclosed element errors #32

Open
@hurrymaplelad

Description

@hurrymaplelad

Given unclosed.cjsx:

1 <div>
2  <div>
3 </div>

Running

$ cjsx unclosed.cjsx

Yields

SyntaxError: Unexpected end of input: unclosed CJSX_EL

With no line numbers.

For comparison, the latest Babel-powered jsx yields:

Unterminated JSX contents (3:6)
  1 | <div>
  2 |   <div>
> 3 | </div>
    |       ^

Probably related to #28

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions