8000 allow jsx identifiers to start with keywords by vladima · Pull Request #4705 · microsoft/TypeScript · GitHub
[go: up one dir, main page]

Skip to content

allow jsx identifiers to start with keywords #4705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 10, 2015
Merged

Conversation

vladima
Copy link
Contributor
@vladima vladima commented Sep 9, 2015

fixes #4644

@@ -12,6 +12,10 @@ namespace ts {
export function createNode(kind: SyntaxKind): Node {
return new (getNodeConstructor(kind))();
}

export function tokenIsIdentifierOrKeyword(token: SyntaxKind): boolean {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be exported from the scanner (and marked internal).

@DanielRosenwasser
Copy link
Member

Can you add an example of the property being a keyword entirely? Like class="FooAligned".

@mhegazy
Copy link
Contributor
mhegazy commented Sep 10, 2015

👍 i would merge this into master and not release-1.6

vladima added a commit that referenced this pull request Sep 10, 2015
allow jsx identifiers to start with keywords
@vladima vladima merged commit c90276f into master Sep 10, 2015
@vladima vladima deleted the keywordInJsxIdentifier branch September 10, 2015 22:00
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 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.

Jsx attributes that start with keyword are not handled correctly
4 participants
0