Non-identifier tokens are valid part/start of identifier when specified with \u #1697

Open
hydroper opened this Issue Dec 26, 2016 · 0 comments

Projects

None yet

1 participant

@hydroper
hydroper commented Dec 26, 2016 edited

Test case

\u{1}

Expected: An "Unexpected token" exception.
Actual: A valid AST is generated.

Any escaped character is treated as part/start of an identifier (independently of its code):

\u{20} // This whitespace is valid identifier.
@hydroper hydroper changed the title from Identifier with unexpected \u UnicodeEscapeSequence token is valid to Non identifier tokens are valid identifier part/start when escaped with \u Dec 26, 2016
@hydroper hydroper changed the title from Non identifier tokens are valid identifier part/start when escaped with \u to Non-identifier tokens are valid identifier part/start when escaped with \u Dec 26, 2016
@hydroper hydroper changed the title from Non-identifier tokens are valid identifier part/start when escaped with \u to Non-identifier tokens are valid part/start of identifier when escaped with \u Dec 26, 2016
@hydroper hydroper changed the title from Non-identifier tokens are valid part/start of identifier when escaped with \u to Non-identifier tokens are valid part/start of identifier when specified with \u Dec 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment