My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1733: operator is not a keyword in javacript
8 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by jeremy.a...@gmail.com, Dec 19, 2012
************************************************************
***** 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.
Sign in to add a comment

Powered by Google Project Hosting