aboutsummaryrefslogtreecommitdiff
path: root/plugin/AGENTS
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-21 10:50:48 +0000
committer_ov4 <ov4@ov4.org>2026-10-21 10:50:48 +0000
commitc17775323baf93e0d9bd44a6f83cd32a986b6fcb (patch)
tree5042cc79afb321b445e3a5a39b36eb1c4eae08b5 /plugin/AGENTS
parent75c0e28e3d56878dbd492cb0c6d6bf341f9e6de7 (diff)
refactor(plugin): share formatting triggers and selection boundaries
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'plugin/AGENTS')
-rw-r--r--plugin/AGENTS/ARCH.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/AGENTS/ARCH.md b/plugin/AGENTS/ARCH.md
index 5242d3e..0f585bb 100644
--- a/plugin/AGENTS/ARCH.md
+++ b/plugin/AGENTS/ARCH.md
@@ -43,6 +43,9 @@ Source attribution is retained in `ThirdPartyNotices.md`.
- `src/indentation.js` computes block depth from earlier lines and returns edits
to leading whitespace only. A selection ending at column zero excludes that
final line. Formatting is idempotent and preserves line endings and other text.
+ It also exports selection boundaries and on-type triggers for both editor adapters.
+ The Bundle imports this module, `lexical.js`, `brackets.js`, the grammar and
+ language configuration directly; keep these modules free of editor APIs.
- `src/lexical.js` masks quotes and comments while preserving UTF-16 offsets.
- `src/brackets.js` uses a stack to report unmatched opening and closing brackets
and crossed types. Only invalid brackets receive the red decoration; native