DioxusLabs / DioxusLabs/dioxus

Incorrect syntax highlighting with expressions inside of formatted strings

Open
#4,290 1 comment 0 reactions 0 assignees View on GitHub
bug rsx
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**Problem**

Incorrect syntax highlighting when accessing `props` fields (see screenshot).
It works, but would be great if you can visually distinguish and see as the usual comment (see screenshot)

**Steps To Reproduce**

Steps to reproduce the behavior:

- define props
- try to access fields of those props in the string

**Expected behavior**

Correct syntax highlighted - string is like string, whatever is inside `{ }` highlighted differently

**Screenshots**

![Image](https://github.com/user-attachments/assets/2cb99c07-88b8-4c8f-81c0-84a147048ac6)

**Environment:**

- Dioxus version: 0.6.0
- Rust version: rustc 1.86.0 (05f9846f8 2025-03-31)
- OS info: Linux Mint 21.2 x86_64
- App platform: web

**Questionnaire**
I would've loved to fix it, but I am myself a newbie and wanted to learn Rust via Web because its the most comfortable thing for me.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.