You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Fix#28] Fix delete-pair and list navigation for delimiters
Add a `list' thing to `treesit-thing-settings' covering all OCaml
container/delimited node types. On Emacs 31+ this enables native
support for `forward-list', `up-list', `down-list', and correct
`forward-sexp' behavior on delimiters via `treesit-forward-sexp-list'.
For Emacs 29-30, introduce `neocaml--forward-sexp-hybrid' which falls
back to syntax-table-based `scan-sexps' when point is on a delimiter
character, so that commands like `delete-pair' find the correct
matching paren instead of jumping to an unrelated tree-sitter node.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
-[#27](https://github.com/bbatsov/neocaml/issues/27): `neocaml-install-grammars` now accepts a prefix argument (`C-u`) to force reinstallation of grammars, even if they are already installed.
8
8
- Avoid the superfluous spaces after the prompt of the REPL when sending code to
9
9
the REPL via the commands `neocaml-repl-send-*`.
10
+
-[#28](https://github.com/bbatsov/neocaml/issues/28): Fix `delete-pair` deleting the wrong closing delimiter. Add a `list` thing to `treesit-thing-settings` and a hybrid `forward-sexp` that falls back to syntax-table matching on delimiter characters.
0 commit comments