tobogganSe connecter

louise

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Editors: an interpolation hole is code, not string

A string's `{hole}` (ADR 0034) took the string's colour wherever its
contents had no capture of their own: a plain `{name}` read as text.

- tree-sitter: `@string` goes on a string's text and quotes, not on the
  whole node; the hole's braces are `@punctuation.special`, after the
  general brackets so that they win. Helix's query regenerated. A highlight
  test, and a Rust test that no `string` capture covers a name in a hole,
  in either query (tree-sitter test cannot assert "no capture").
- VS Code: plain strings had no hole rule at all. One `#interpolation`
  rule now serves strings and the six template kinds, with
  `meta.embedded.line` content, the scope themes reset to code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 1 mois · a481ebc85453e99fb28b658a58afe51a35c3848e

Parents a5875fd

5 fichiers modifiés, 113 ajouts, 55 suppressions

Meditors/tree-sitter-louise/bindings/rust/lib.rs+55−0
Meditors/tree-sitter-louise/queries/helix/highlights.scm+6−4
Meditors/tree-sitter-louise/queries/highlights.scm+9−3
Aeditors/tree-sitter-louise/test/highlight/interpolation.lse+12−0
Meditors/vscode/syntaxes/louise.tmLanguage.json+31−48