Skip to content

Weird syntax highlighting in Rust #6848

Open
@A-Walrus

Description

@A-Walrus

Summary

Looking at some code from rust-analyzer:config.rs.
Results in some strange syntax highlighting within the config_data! macro:
Screenshot from 2023-04-22 15-39-05

Not sure if it counts as a bug since the code inside the macro is not actually valid rust syntax, but thought I'd file this anyway just in case 🤷‍♂️.

For reference this is what it looks like in vscode:
image
Also wrong, but in a different way 😆

Reproduction Steps

I tried this:

  1. hx config.rs

I expected this to happen:
Text inside quotes is colored as such.
Instead, this happened:
Some text is colored incorrectly

Helix log

No response

Platform

Linux

Terminal Emulator

kgx (Gnome Console)

Helix Version

helix 23.03

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions