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

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.15.2
    • Editors
    • None
    • 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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: