Skip to content

Allow /* comments between < and JSX element name#5007

Merged
RyanCavanaugh merged 3 commits into
microsoft:masterfrom
RyanCavanaugh:fix4514
Sep 29, 2015
Merged

Allow /* comments between < and JSX element name#5007
RyanCavanaugh merged 3 commits into
microsoft:masterfrom
RyanCavanaugh:fix4514

Conversation

@RyanCavanaugh
Copy link
Copy Markdown
Member

Fixes issue #4514

Comment thread src/compiler/parser.ts Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

no.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

:rage1:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We could add a lint for this. No lies. Alongside 'no-null' we can have 'no-debugger'.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sure, but have you ever considered how much I enjoy doing this?

@DanielRosenwasser
Copy link
Copy Markdown
Member

Apart from the debugger statement, looks good to me. 👍

@vladima
Copy link
Copy Markdown
Contributor

vladima commented Sep 29, 2015

👍

Comment thread src/compiler/scanner.ts Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i would move the languageVariant === LanguageVariant.JSX to the beginning of the if condition, just to save the two extra dispatches in the negative case.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good point

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Sep 29, 2015

👍

RyanCavanaugh added a commit that referenced this pull request Sep 29, 2015
Allow /* comments between < and JSX element name
@RyanCavanaugh RyanCavanaugh merged commit c452606 into microsoft:master Sep 29, 2015
@RyanCavanaugh RyanCavanaugh deleted the fix4514 branch September 29, 2015 18:55
@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.

6 participants