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

Syntax colorisation broken by "special" comment

    XMLWordPrintable

Details

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

    Description

      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).

      Attachments

        1. test.cc
          0.1 kB
        2. test.h
          0.1 kB

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes