Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22078

Binary literal are not correctly highlighted when using tick marks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • Qt Creator 4.8.2
    • C/C++/Obj-C++ Support
    • None
    • Linux/X11

    Description

      When using the following literal in an enumeration class:

      enum class XXX : quint16
      {
         YYY  = 0b0000'0001
      };

      the Qt Creator editor highlighter is confused, showing a mix of blue (left the tick mark) and green (right of the tick mark). It seems it doesn't know about tick marks in binary literals.

      Please fix.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kosjar Nikolai Kosjar
              silicomancer Bernhard Lindner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes