Looking in Leo's code, I see that the following are considered (end) brackets: )]}> I'm not sure if the code would work right if the end marker were the same as the start marker (e.g., / ../).
See the constructor for class g.MatchBrackets. On Wednesday, November 18, 2020 at 2:11:09 PM UTC-5 [email protected] wrote: > I just checked <!-- -->, and match-brackets worked there, too. It > didn't work for /*....*/ though, if that's what you meant by "//". > > On Wednesday, November 18, 2020 at 1:50:54 PM UTC-5 [email protected] > wrote: > >> match-brackets does work on [], and {} as well. What kind of syntax >> regards "//" as bracket markers?. >> >> On Wednesday, November 18, 2020 at 12:29:01 PM UTC-5 gar wrote: >> >>> Leo does have a match-brackets command, which I have hot-keyed to Ctrl+]. >>>> It selects the region between a bracket and its matching one. There is >>>> also add-comments/delete-comments, which I find very helpful. >>>> goto-next-marked is another one I use often, along with mark/unmark-all >>>> . >>>> >>> Know about that. But that's not enough. It selects area in (...) What >>> about [], {}, // ? What about moving cursor to the matching symbol? Etc etc >>> etc >>> >> -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/375e9638-2304-452d-bb14-d0424845b229n%40googlegroups.com.
