betacode1 / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

Update the JavsScript keywords list? #344

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm happy to submit a patch for this but I thought I'd ask first, I notice the 
the JavaScript list of keywords is based off the C list but the C list include 
things that are not in JavaScript (like "auto", "extern", "inline", "volatile") 
and the JavaScript list itself is missing some of the new ES6 things like 
"yield", "implements", "let", "interface", "package" etc..

IShould I make a patch for that?

Original issue reported on code.google.com by g...@chromium.org on 19 Jun 2014 at 7:54

GoogleCodeExporter commented 8 years ago
Hmm, I  now see I must have been staring at the wrong code as I don't see the 
JavaScript list including the C list but still there is the ES6 stuff. thoughts?

Original comment by g...@chromium.org on 19 Jun 2014 at 7:55

GoogleCodeExporter commented 8 years ago
I added "instanceof" to the JSCRIPT_KEYWORDS in my local copy of prettify.js.

Original comment by stefanmu...@gmail.com on 21 Jun 2014 at 10:24