texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

Improper highlighting of braces when there is a comment

Open 7Z0t99 opened this issue 2 years ago • 1 comments

Environment

  • TeXstudio: 4.3.1
  • Qt: 6.3.1
  • OS: Windows 10

Expected behavior

In the editor, when the cursor is moved to a brace that is not commented out, the brace and the matching brace, which is also not commented out, are highlighted.

Example for the bug

Consider

{%}
}

Here, when I move the cursor to the first brace, this brace and the commented out brace are highlighted instead of that in the second line. screenshot

7Z0t99 avatar Oct 01 '22 17:10 7Z0t99

this is a corner case which the current syntax highlighter does not handle. As it is a rare occurence, no changes planned.

sunderme avatar Oct 02 '22 18:10 sunderme