Skip to content
  • commit-queue@webkit.org's avatar
    Web Inspector: highlight undefined word in JavaScript · a5916232
    commit-queue@webkit.org authored
    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:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143440 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a5916232