CandyShop / gerrit

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

operator is not a keyword in javacript #1733

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version:

What steps will reproduce the problem?
1. Create a javascript file containing:
function foo() {
    var operator = "bar";
}
2. Push it for review
3. Check the difference (side by side or unified).

What is the expected output? What do you see instead?

operator should not be highlighted.

Instead, operator is highlighted with CSS class 'kwd'

Please provide any additional information below.

I checked: 
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Reserved_Words

And operator does not seem to be a valid keyword in javascript.

Original issue reported on code.google.com by jeremy.a...@gmail.com on 19 Dec 2012 at 3:49

GoogleCodeExporter commented 9 years ago
See also http://es5.github.com/#x7.6.1

Original comment by krinklemail@gmail.com on 13 Feb 2013 at 5:59