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

JavaScript Template Strings highlighted as errors. #140

Closed
dead-claudia opened this issue Nov 3, 2014 · 5 comments
Closed

JavaScript Template Strings highlighted as errors. #140

dead-claudia opened this issue Nov 3, 2014 · 5 comments

Comments

@dead-claudia
Copy link

The following should be highlighted as syntactically correct template strings:

`foo`  // equivalent to "foo"
`foo${bar}`  // equivalent to "foo" + bar
`f${oo}b${ar}`  // equivalent to "f" + oo + "b" + ar
`${foo}${bar}`  // equivalent to foo + "" + bar
`${foo}`  // equivalent to foo + ""

When each string is highlighted as a template string (like CoffeeScript's or Ruby's double-quoted strings), then I know it's been patched for the site.

This is part of the ES6 proposal, already used in production.

@jledentu
Copy link

+1, the Javascript lexer should be fixed

@syymza
Copy link

syymza commented May 6, 2015

+1

@rtoal
Copy link

rtoal commented Aug 27, 2015

Waiting for this too. Wish I had time to contribute.

@jawache
Copy link

jawache commented Nov 10, 2016

Hia, is there some work around for this?

@gfx
Copy link
Collaborator

gfx commented Dec 11, 2016

Released pygments.rb v1.0.0 with the latest Pygments 2.2.0-snapshot.

If you have more problems, please report issues to the upstream project: https://bitbucket.org/birkenfeld/pygments-main

This gem is just a binding to it.

@gfx gfx closed this as completed Dec 11, 2016
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

No branches or pull requests

6 participants