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

Multiline raw string literals breaks coloring and indentation

    XMLWordPrintable

Details

    Description

      Using raw string literals containing multiple lines breaks the coloring of the string after the first line (e.g. the text has the default text color and C++ keywords are highlighted).
      Starting on the third line, the indentation is also wrong. This continues even after the string is closed until the end of the file.

      Example code:

      int main() {
      	R"(the first line looks correct
      	wrong coloring of the 2nd: e.g. 42 int "string"
      							   and wrong indentation
      							   of the following lines)";
      	  // even after the string
      	  return 0;
      }
      

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            mkrems Marcel Krems
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes