vigna / ne

ne, the nice editor
http://ne.di.unimi.it/
GNU General Public License v3.0
473 stars 33 forks source link

Matching braces #80

Closed kroggen closed 3 years ago

kroggen commented 3 years ago

The editor is not matching braces when there is one in a comment.

To reproduce, type in the command line:

ne test.c

Then paste this code:

  if (xx) {
    if (yy) {

    } else {  // a comment here {

    }
  }

Move the cursor to one of the last 2 curly braces.

Not a big problem, though.

vigna commented 3 years ago

Yes, even if you have a brace inside a string, etc. The matching algorithm is very basic and content-agnostic.