A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/clojure-emacs/clojure-ts-mode/issues/97 below:

`show-paren-mode` highlights irrelevant things for some expressions · Issue #97 · clojure-emacs/clojure-ts-mode · GitHub

For treesitter major modes, show-paren-data-function is set to treesit-show-paren-data by default. This function highlights the first and the last children of a list "thing", which is not always matching pairs. For example:


I can implement a custom show-paren-data-function for clojure-ts-mode that will always highlight matching pairs. In this case navigation might look inconsistent, because an opening paren is somewhere in the middle of a node. For example from this position:

executing backward-sexp would bring cursor to this position:

because the vector apparently starts from ^.

Would this change be an improvement? Or we better keep the existing behavior?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4