Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-9501

Pygments is terrible at properly detecting and/or highlighting Javascript (BB-10687)

    XMLWordPrintable

Details

    Description

      Javascript syntax highlighting seems broken in the source viewer, for the following lines:

      var matches = body.match(/name='csrfmiddlewaretoken' value='([^']+)'/);
      

      And

      var downloadLinkMatch = body.match(new RegExp(&#x27;<a href="([^"]+)">&#x27;+filename+&#x27;</a>&#x27;));
      

      As seen in http://i.imgur.com/sMPuKNl.png line 72 and 113.

      Attachments

        Activity

          People

            Unassigned Unassigned
            1d447d44406d thespiked
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: