Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-10733

bitbucket syntax highlighting doesn't work with `case '"':`

    XMLWordPrintable

Details

    • 3
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      The syntax highlighting in the bitbucket web interface (looking at the "source view" tab) seems to have problems with string parsing. For an example the line in question looks like this:

      case '"':

      and everything after the first quote is highlighted as if it is contained inside a string literal.

      It seems clear that this is a parsing error — it is treating the double quote (which is itself inside a single quote) as the beginning of some element (likely a string literal) which then doesn't end even though it crosses over several different code elements. (I would expect the highlighting for later `case`s to match that of the first `case`.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            4c762d6af390 Corey Steele
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: