Skip to content

Handle multiline jsx strings correctly, emit escapes in jsx attributes correctly#20309

Merged
weswigham merged 1 commit into
microsoft:masterfrom
weswigham:multiline-string-jsx-attribute
Nov 30, 2017
Merged

Handle multiline jsx strings correctly, emit escapes in jsx attributes correctly#20309
weswigham merged 1 commit into
microsoft:masterfrom
weswigham:multiline-string-jsx-attribute

Conversation

@weswigham
Copy link
Copy Markdown
Member

@weswigham weswigham commented Nov 28, 2017

Fixes #13328

I also changed jsxInvalidEsprimaTestSuite.tsx to actually start a new parser context for each invalid line, since this change caused a change in the error cascade in that file that I'd rather avoid. Unfortunately, that exposed another bug: we parse <a>}</a>; and <a>></a>; as valid jsx, when they should be invalid (} and > are both explicitly not part of the JsxText character set in the spec).

@weswigham weswigham changed the title handle multiline jsx strings correctly, emit escapes in jsx attributes correctly Handle multiline jsx strings correctly, emit escapes in jsx attributes correctly Nov 28, 2017
@weswigham weswigham merged commit a1669bb into microsoft:master Nov 30, 2017
@weswigham weswigham deleted the multiline-string-jsx-attribute branch November 30, 2017 01:08
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants