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

Incorrect preprocessor keyword highlighting in strings

XMLWordPrintable

    • Linux/X11
    • b1e73ca45d (qt-creator/qt-creator/master) b1e73ca45d (qt-creator/qt-creator/8.0)

      In the following code snippet:

      #define FOO 1
      #define BAR 1
      
      const char text[] =
      #if defined(FOO)
      			"Hello"
      #endif
      #if defined(BAR)
      			"World"
      #endif
      ;
      

      the first #endif and second #if defined are highlighted as string literals instead of preprocessor keywords.

      clangd is enabled.

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

            kandeler Christian Kandeler
            lastique Andrey Semashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes