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

Syntax highlighting issue with raw strings into macros

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P4: Low
    • Qt Creator 4.4.0-rc1
    • Qt Creator 4.3.1
    • None
    • Environment: Qt Creator 4.3.1 downloaded from official site on Ubuntu 16.04.3 x86_64.

    Description

       The following code:

      #define COMPORT_NAME R"(\\.\COM1)"
      #elif defined(Q_OS_LINUX)
      #define COMPORT_NAME "/dev/ttyS0"
      #else
      #error "OS is not yet supported"
      #endif
      

      gives wrong syntax highlighting until some point, where it is became recovered to the correct state.

      The context and a portion of the following text incorrectly highlighted are attached.

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            tomilovanatoliy Anatoliy Tomilov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Gerrit Reviews

                  There are no open Gerrit changes