Menu

#1906 Highlight Matching Brackets

Bug
closed-duplicate
5
2019-12-07
2017-02-04
No

Description of the Issue
Matching brackets are not highlighted properly.
Sometimes they do match and sometimes they don't match.

Steps to Reproduce the Issue
Jump around my file

Expected Behavior
I'd expect the brackets to be highlighted properly regardless of their number or indentation.

Debug Information
I think this has to do with:
* high number of brackets
* bad indentation

I have attached the .bat file I'm working on.
I tried opening the same file with a program named "Brackets" and the brackets are highlighted properly.

I have posted the same issue here:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2865

Got the following answer from dail8859
The way brace matching works is that it only looks at braces in the same style. There appears to be a bug in the lexer for Batch because the opening ( on line 41 is not in the correct style. This bug would need reported to the Scintilla project page.

Screenshots


Notepad++ v7.3.1 (64-bit)
Build time : Jan 17 2017 - 00:28:43
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10
Plugins : mimeTools.dll NppConverter.dll

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2017-02-05
    • labels: highlight, matching, brackets --> highlight, matching, brackets, batch, scintilla, lexer
    • status: open --> open-duplicate
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2017-02-05

    This is a duplicate of [#1624].

     

    Related

    Bugs: #1624

  • Neil Hodgson

    Neil Hodgson - 2019-12-07
    • status: open-duplicate --> closed-duplicate
     

Log in to post a comment.