Skip to content

fix GH-247: Single-line comments after import statement #277

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 1 commit into from
Jul 17, 2015

Conversation

ccarpita
Copy link
Contributor

The single line comment in the following statement is currently no
highlighted:

import Y from 'Y' // this should be a comment

This introduces jsLineComment as being containable in an import statement,
and also closes the import statement on semicolon so that other expressions
can be highlighted correctly.

The single line comment in the following statement is currently no
highlighted:

```js
import Y from 'Y' // this should be a comment
```

This introduces jsLineComment as being containable in an import statement,
and also closes the import statement on semicolon so that other expressions
can be highlighted correctly.
@ccarpita
Copy link
Contributor Author

Fixes GH-247

@qstrahl
Copy link
Collaborator

qstrahl commented Jul 17, 2015

Seems harmless

qstrahl added a commit that referenced this pull request Jul 17, 2015
fix GH-247: Single-line comments after import statement
@qstrahl qstrahl merged commit 9664e22 into pangloss:develop Jul 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants