slint-ui/slint

Zed Syntax highlighting for grammar in callbacks is incorrect

Geschlossen

#11.724 geöffnet am 13.05.2026

 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (881 Forks)batch import
a:editor integrationgood first issue

Repository-Metriken

Stars
 (22.596 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 4T 18h) (254 gemergte PRs in 30 T)

Beschreibung

Bug Description

The callback code should look like the following:

but when I use the concise callback syntax, it seems not to recognize the code as code and highlights it as plain white

This happens in all cases, from what I can tell:

I apologize in advance if I've used any incorrect terminology. I've searched the issues, but didn't find anything related. Since this bug has been around for quite some time now, I figured I'd open a bug report.

Reproducible Code (if applicable)

Environment Details

  • Slint Version: 1.16.1 (this bug has been around for some time though)
  • Platform/OS: NixOS (Wayland)
  • Programming Language: Rust
  • Backend/Renderer: winit (probably, not certain)

Product Impact

I'm just working on a hobby app. This is just an inconvenience. It seems like an easy fix, so I figured I'd open an issue anyway.

Contributor Guide