Skip to content

JS Mode: Contextualize "from" keyword highlighting - #3264

Merged
nightwing merged 1 commit into
ajaxorg:masterfrom
GabrielRatener:master
Apr 9, 2017
Merged

nightwing merged 1 commit into
ajaxorg:masterfrom
GabrielRatener:master

Conversation

@GabrielRatener

Copy link
Copy Markdown

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

aalvrz commented Apr 9, 2017 •

Copy link
Copy Markdown
Contributor

Nice! Thanks for this.

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

Copy link
Copy Markdown
Contributor

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.

3 participants