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

Brace matching gets confused by a linebreak in a ternary operator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.15.2
    • Editors
    • None
    • Linux/X11

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes