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

The syntaxic coloration of preprocessor macro don't work correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • Qt Creator 1.3.0 rc1
    • Qt Creator 1.0
    • Editors
    • None
    • 1bb9a245176e5497da494f5092af940fbe613494

    Description

      The color of the code inside a #if can be wrong if there is an indentation of the marco.

      For example, copy the following code in Qt Creator:

      #define TRY 0
      #define TRY2 1

      function_1(....);
      function_2(....);
      function_3(....);
      function_4(....);
      function_5(....);

      #if TRY == 0
      function_1(....);
      function_2(....);
      #if TRY2 == 0
      // Text
      QDrag *test;
      function_1();
      #endif
      function_3(....);
      function_4(....);
      function_5(....);
      #endif

      Attachments

        1. syntax.png
          syntax.png
          58 kB
        2. syntax.cc
          0.1 kB

        Activity

          People

            raggi Roberto Raggi
            poulain Benjamin Poulain (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: