Skip to content

Wrong keyword highlighting rust #42922

@aleanon

Description

@aleanon

Summary

the "for" keyword in Rust is recognized as keyword.control everywhere, await is not recognized as keyword.control

Description

Steps to reproduce:

  1. In settings json:
"experimental.theme_overrides": {
   "syntax": {
       "keyword.control": {
             "color": <set color different from keyword>
        }
    }
 }
  1. Look at a trait impl block, heigher ranked trait bound and an await call

Expected Behavior:
impl block 'for' and heigher ranked trait bounds should be the color of keyword.
'await' should be the color of keyword.control

Actual Behavior:
impl block 'for' and heigher ranked trait bounds has the color of keyword.control
'await' has the color of keyword

Zed Version and System Specs

Zed: v0.212.6 (Zed)
OS: Linux X11 linuxmint 22.1
Memory: 62.6 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 4070 || NVIDIA || 570.195.03

If applicable, attach your Zed.log file to this issue.

Zed.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions