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

Syntax colorisation broken by "special" comment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 2.7.0-beta
    • C/C++/Obj-C++ Support
    • None
    • 47d60ae89a853997b8af3690531b3b9ee60ed628

      Adding a "special" comment consisting of a single exclamation point breaks the syntax parsing and colorisation of the lines following the use of such comment (including the line on which the comment is present).

      • used variables are marked as unused (var1)
      • attributes are not colorized as such (m_attr in the .cc file)
      • the highlighting seems to be off by one line (the var3 is partially colorised)
      • and many more.

      Example attached.

      (Useless note: I guess //! is treated as special in relation to doxygen comments parsing. Simply adding one character after the exclamation point, or removing the exclamation point, "fixes" the syntax colorisation).

        1. test.h
          0.1 kB
        2. test.cc
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kosjar Nikolai Kosjar
            tibirna Cristian Tibirna
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes