Changeset 143440

Timestamp:
02/20/13 01:44:37 (20 months ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: highlight undefined word in JavaScript
https://bugs.webkit.org/show_bug.cgi?id=109585

Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-02-20
Reviewed by Vsevolod Vlasov.

Source/WebCore:

Test enhancement: inspector/syntax-highlight-javascript.html

Add global object value properties to tokenizer and add a css style
class to highlight "undefined" with gray color.

  • inspector/front-end/SourceJavaScriptTokenizer.js:

(WebInspector.SourceJavaScriptTokenizer.prototype.nextToken):

  • inspector/front-end/SourceJavaScriptTokenizer.re2js:
  • inspector/front-end/inspectorSyntaxHighlight.css:

(.webkit-javascript-undef):

LayoutTests:

Enhance layout test to verify highlighting of global object value properties.

  • inspector/syntax-highlight-javascript-expected.txt:
  • inspector/syntax-highlight-javascript.html:
Location:
trunk
Files:
7 edited

Note: See TracChangeset for help on using the changeset viewer.