
louise
Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.
Dernier runRéussi#1207 · main · 10 min 04 s
1Étoiles
0Forks
0Issues
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>Parents a5875fd
5 fichiers modifiés, 113 ajouts, 55 suppressions
editors/tree-sitter-louise/bindings/rust/lib.rs+55−0editors/tree-sitter-louise/queries/helix/highlights.scm+6−4editors/tree-sitter-louise/queries/highlights.scm+9−3editors/tree-sitter-louise/test/highlight/interpolation.lse+12−0editors/vscode/syntaxes/louise.tmLanguage.json+31−48