turbo-editors/turbo-rustpublic Fork 0
main
Commits
Clone
git clone https://git.rickub.com/turbo-editors/turbo-rust.git
git clone ssh://git@rickub.com/turbo-editors/turbo-rust.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

📦 Turbo Rust 713ea5c · on main · k33g · 12h ago
2026-09-01-more-syntaxes.md · 33 lines · 2.2 KBmarkdown
Blame HistoryOpen raw

Handoff — 2026-09-01 — Dockerfile, compose, YAML and XML colouring (ticket 8)

State

Ticket 8 is done here, on the branch feature/more-syntaxes. Nothing is committed.

The scanners live in turbo-core; this repository's share was small and is finished:

  • internal/rustlang/templates.go — the snippets template's languages comment lists the nine names Turbo Rust now knows: rust, toml, yaml, markdown, javascript, html, xml, dockerfile, bash.
  • TestTheCreatedSnippetsFileListsEveryLanguageTheEditorKnows iterates syntax.Registered(), so the comment cannot fall behind the registry again.
  • docs/{en,fr}/reference/languages.md gained a YAML, an XML and a Dockerfile section, and its recognition and class tables were brought up to date.
  • The language counts were corrected across the architecture and colouring explanations, both READMEs and the snippets references.

Suite green, quality gate PASS 0/0/0, complexity unchanged. Verified in a real pty: a Dockerfile, a compose.yaml and a pom.xml open and colour, with CDATA contents arriving as a string.

In flight

Nothing half-done.

Next steps

  1. Review and commit on feature/more-syntaxes, merge to main.
  2. Wait for turbo-core v0.2.0 to be tagged and published — see turbo-core's handoff of the same date.
  3. go mod tidy to write the v0.2.0 checksum into go.sum, then make check.

Open questions / blockers

  • This branch does not build yet. go.mod requires turbo-core v0.2.0 with no active replace, and that version is not published. go build fails with missing go.sum entry for module providing package codeberg.org/turbo-editors/turbo-core/app, which is the expected error, not a defect. To work on this branch before the release, uncomment the replace line at the bottom of go.mod — and remove it again before committing.

Watch out for

  • The snippets template's language list is a comment, and a comment can lie. The test that iterates syntax.Registered() is what stops it; do not replace it with a hardcoded list "for clarity".
  • Anything about how the three new languages are coloured belongs in turbo-core, and its handoff of the same date lists the traps.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Handoff — 2026-09-01 — Dockerfile, compose, YAML and XML colouring (ticket 8)

## State

Ticket 8 is done here, on the branch `feature/more-syntaxes`. Nothing is committed.

The scanners live in turbo-core; this repository's share was small and is finished:

- `internal/rustlang/templates.go` — the snippets template's `languages` comment lists the nine names Turbo Rust now knows: `rust, toml, yaml, markdown, javascript, html, xml, dockerfile, bash`.
- `TestTheCreatedSnippetsFileListsEveryLanguageTheEditorKnows` iterates `syntax.Registered()`, so the comment cannot fall behind the registry again.
- `docs/{en,fr}/reference/languages.md` gained a YAML, an XML and a Dockerfile section, and its recognition and class tables were brought up to date.
- The language counts were corrected across the architecture and colouring explanations, both READMEs and the snippets references.

Suite green, quality gate **PASS 0/0/0**, complexity unchanged. Verified in a real pty: a `Dockerfile`, a `compose.yaml` and a `pom.xml` open and colour, with CDATA contents arriving as a string.

## In flight

Nothing half-done.

## Next steps

1. Review and commit on `feature/more-syntaxes`, merge to `main`.
2. Wait for **turbo-core v0.2.0** to be tagged and published — see turbo-core's handoff of the same date.
3. `go mod tidy` to write the v0.2.0 checksum into `go.sum`, then `make check`.

## Open questions / blockers

- **This branch does not build yet.** `go.mod` requires `turbo-core v0.2.0` with no active `replace`, and that version is not published. `go build` fails with `missing go.sum entry for module providing package codeberg.org/turbo-editors/turbo-core/app`, which is the expected error, not a defect. To work on this branch before the release, uncomment the `replace` line at the bottom of `go.mod` — and remove it again before committing.

## Watch out for

- **The snippets template's language list is a comment, and a comment can lie.** The test that iterates `syntax.Registered()` is what stops it; do not replace it with a hardcoded list "for clarity".
- Anything about how the three new languages are coloured belongs in turbo-core, and its handoff of the same date lists the traps.