Skip to content

Fix aligning a form after metadata and extra spaces - #175

Merged
bbatsov merged 1 commit into
mainfrom
fix-align-metadata-spacing
Nov 7, 2026
Merged

bbatsov merged 1 commit into
mainfrom
fix-align-metadata-spacing

Conversation

@bbatsov

@bbatsov bbatsov commented Nov 7, 2026

Copy link
Copy Markdown
Member

Aligning a line that ends in a form after metadata and more than one space, like {:a ^:m b followed by more pairs, signalled treesit-node-outdated, since fixing that space left the node the search carried on with outdated.

@bbatsov
bbatsov force-pushed the fix-align-metadata-spacing branch from 79f76ea to 784e62c Compare November 7, 2026 08:59
clojure-ts--search-whitespace-after-next-sexp fixes the space after
metadata, which leaves the node it searches outdated, and it went on to
the next line with that node when the form after the metadata ended its
line.  Aligning {:a ^:m  b
:ccc d} signalled treesit-node-outdated.
@bbatsov
bbatsov force-pushed the fix-align-metadata-spacing branch from 784e62c to cbeab56 Compare November 7, 2026 09:16
@bbatsov
bbatsov merged commit 36ec091 into main Nov 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant