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

Brace matching gets confused by a linebreak in a ternary operator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 4.15.2
    • Fix Version/s: None
    • Component/s: Editors
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      With the following expression in the editor window (mind the line break):

      (1 < 0 ? 1

          : 0)

      putting the cursor on either of the parentheses fails to match the other one, stopping at : (when on left parenthesis) or ? (when on right parenthesis) instead. With the line break removed, the match is highlighted as it should.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              davschul David Schulz
              Reporter:
              alexey.rusakov Alexey Rusakov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes