I quickly browsed sources. I might be wrong saying that such a behavior is 
Scintilla's work. It might be in editors, not in the library. Just Geany may 
have copied this logic from Scite, a demo editor. But, it doesn't matter which 
module provides the matching logic. This inside-braces/outside-braces logic was 
designed for a control on the quick selection. Let's activate "extra selection" 
plugin and use "Select to matching brace". In the example "[text]"  we can 
quickly select either the text inside braces or the text including these 
braces. On one hand, it is good, on another hand, it has a side effect that I 
mentioned above.  A few years ago, I did discuss this problem on Scite forum. 
The option to control the quick selection is important for users. Then, I came 
up with an idea of LUA script for alternative brace matching in case of complex 
expressions. I recently introduced Geany to few colleagues, and people were 
confused with matching. Because brace matching is one of Geany core 
functionality, it is possible to create another function in Geany for 
alternative matching. LUA is not ideal for it.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1998#issuecomment-442240139

Reply via email to