zyedidia / micro

A modern and intuitive terminal-based text editor

Home Page:https://micro-editor.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nested brace matching makes it impossible to highlight (underline) certain braces

injust opened this issue · comments

Description of the problem or steps to reproduce

  1. Type this:
[[]][]
  1. Try to put the cursor on this brace (which should highlight (underline) the matching 1st brace):
[ [ ] ] [ ]
      ^
  1. Depending on the cursor position, either the last pair or the inside pair of braces are highlighted. The outside pair of braces cannot be highlighted.

Specifications

Commit hash: 68d88b57
OS: macOS Sonoma 14.5
Terminal: Ghostty

I do not know how it is fixed but it seems to be fixed in 9eb8782. The fix is not included in the latest release.

Confirmed fixed on version 2.0.14-dev.227 (commit hash: a10624cc)