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

Incorrect highlighting and indentation when string literal contains newline

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 2.2.0
    • C/C++/Obj-C++ Support
    • None

    Description

      Paste these lines into a C++-editor:

      char * mychar = "my string in long long line .... \
                       line continues .... ";
      

      This results in the following wrong highlighting and indentation:

      Attachments

        Issue Links

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

          Activity

            People

              ckamm Christian Kamm
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes