Skip to content

No context for unclosed element errors #32

Open

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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