Skip to content

Conversation

@sebthom
Copy link
Member

@sebthom sebthom commented Nov 15, 2025

Auto-edit and comment paths (e.g. line comment toggling) now resolve the caret's effective content types through TM partitions before running auto-close, surround, or toggle logic so embedded scopes (e.g., fenced CSS/JS) get their own tokens. Commands fall back to the outer document type only when the partition yields no mapping.

@sebthom sebthom force-pushed the partition-aware-langcfg branch 4 times, most recently from ca9becd to 06eb4cd Compare November 17, 2025 11:31
Whitespace-only base regions (typically blank lines) between identical
embedded types were creating extra partitions. Merge these gaps in
computePartitioning so fenced/embedded blocks remain single contiguous
regions.
Auto-edit and comment paths now resolve the caret's effective content
types through TM partitions before running auto-close, surround, or
toggle logic so embedded scopes (e.g., fenced CSS/JS) get their own
tokens. Commands fall back to the outer document type only when the
partition yields no mapping.
@sebthom sebthom force-pushed the partition-aware-langcfg branch from 06eb4cd to 7ae8349 Compare November 17, 2025 13:32
@sebthom sebthom merged commit 82a0bf6 into eclipse-tm4e:main Nov 17, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant