-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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:
- Function literals:
- Sets:
- Expressions with metadata (BTW, I really don't like how the grammar works with metadata, it's pain to work with and causes more problems than benefits):
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?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working