Skip to content
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

JS Mode: Contextualize "from" keyword highlighting #3264

Merged
merged 1 commit into from Apr 9, 2017

Conversation

GabrielRatener
Copy link

As pointed out by @nightwing in #3255, from is a contextual keyword and should ideally only be highlighted within module declarations. This PR improves upon #3255 by only highlighting from when it comes before a single-quoted or double-quoted string, as this usage of from is only valid within module declarations.

@GabrielRatener GabrielRatener changed the title JS Mode: Contextualized "from" keyword highlighting JS Mode: Contextualize "from" keyword highlighting Apr 7, 2017
@aalvrz
Copy link
Contributor

aalvrz commented Apr 9, 2017

Nice! Thanks for this.

@nightwing nightwing merged commit 2a050da into ajaxorg:master Apr 9, 2017
@nightwing
Copy link
Member

Thank you!

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.

None yet

3 participants