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

Empty /// line DoxyGen comments confuse syntax highlighter (regression to Beta)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • Qt Creator 2.7.0
    • Qt Creator 2.7.0-rc
    • C/C++/Obj-C++ Support
    • None
    • Mac OS X 10.8.3
      Ubuntu Linux 12.04.2 LTS 64-bit

    Description

      Using ///<LF> (aka C++ DoxyGen comments) without any trailing characters confuse syntax highlighter, causing all highlight to be shifted one line down, per single line.

      Try opening attached .h file. Or type in the newly opened C++ header editor:

      Unable to find source-code formatter for language: highlight_bug.h. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      /// 1
      ///
      /// 2
      ///
      /// 2
      ///
      /// 3
      
      template <typename PixelType,
                typename LORType,
                typename SType = int,
                typename HitType = int>
      class MatrixPixelMajor {
       public:
        typedef PixelType Pixel;
        typedef LORType LOR;
        typedef SType S;
        typedef HitType Hit;
      };
      

      This problem doesn't affect previous Beta, so it was introduced somewhere in after Beta, and only affects RC.

      Attachments

        1. highlighter_bug.h
          0.6 kB
          Adam Strzelecki

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              ono Adam Strzelecki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes