mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Fix for loop (with key) autocompletion
The special-case for loop syntax does not exist anymore, but the pattern syntax covers the use case. Fixes #1778.
This commit is contained in:
parent
c23d036426
commit
c0af6e3569
@ -849,7 +849,7 @@ fn code_completions(ctx: &mut CompletionContext, hashtag: bool) {
|
|||||||
|
|
||||||
ctx.snippet_completion(
|
ctx.snippet_completion(
|
||||||
"for loop (with key)",
|
"for loop (with key)",
|
||||||
"for ${key}, ${value} in ${(a: 1, b: 2)} {\n\t${}\n}",
|
"for (${key}, ${value}) in ${(a: 1, b: 2)} {\n\t${}\n}",
|
||||||
"Computes or inserts something for each key and value in a collection.",
|
"Computes or inserts something for each key and value in a collection.",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user