Skip to content

Colorization of Javascript string literals in PE is inconsistent.  #737

Closed
@claycompton

Description

  1. Navigate to http://preview.nuget.org/packages/Modernizr/2.6.2/Contents
  2. Open Content\Scripts\modernizr-2.6.2.js in the preview pane.
  3. Scroll down to line 104 in the file (the text of which is "fakeBody = body || document.createElement('body');")
  4. Observe the colorization of that and of subsequent lines.

Result: We incorrectly colorize the javascript text literal in that line, erroneously treating the closing single-quote as the start of a multi-line string. This affects readability adversely.
Expected: We should parse and colorize string literals in JavaScript expressions correctly.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions