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 ES6 Support #200

Open
nathanemyers opened this issue Sep 2, 2016 · 4 comments
Open

Javascript ES6 Support #200

nathanemyers opened this issue Sep 2, 2016 · 4 comments
Assignees
Milestone

Comments

@nathanemyers
Copy link

Is there support planned for adding ES6 keywords and highlighting for javascript? The only egregious error I've noticed so far is in parsing backtick string blocks such as:

`Hello, my name is ${name}.`

Thanks!

@korny korny added this to the 1.2 milestone Jan 15, 2017
@korny korny self-assigned this Jan 15, 2017
@korny
Copy link
Member

korny commented Jan 15, 2017

Very reasonable request. I will put it on the list for 1.2.

@tigarcia
Copy link

Hi any news on when this change might come out? I'm willing to help with the code, but I would probably need some advice on where to get started.

@korny
Copy link
Member

korny commented May 7, 2017

Not working on scanners at the moment. The future of CodeRay might be the rewrite of the scanner engine. It's just too difficult to write them right now, that's why Rouge has long passed CodeRay in terms of supported languages.

But it should be easy to tweak existing scanners. For this one, you just need to add new rules to https://github.com/rubychan/coderay/blob/master/lib/coderay/scanners/java_script.rb. There's also a short guide on writing Scanners that might be helpful.

@0xallie
Copy link

0xallie commented Apr 1, 2022

Any news on this? It's been over 5 years, ES6 (and newer versions) are pretty ubiquitous now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants