Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

[language-rust-bundled] Combo of use::{something, *} and quoted str breaks highlighting #20884

@CriesofCarrots

Description

@CriesofCarrots

Prerequisites

Description

If there is a nested star in a use statement and a quoted str, highlighting breaks after the star:

image

Steps to Reproduce

This is some simple code that produces the issue:

use crate::checks::{self, *};

pub fn foo() -> Result<(), Box<dyn error::Error>> {
    let string = "foo";

    Ok(())
}

Expected behavior:

Removing quotes fixes issue (I know this won't compile). Notice the highlighting in the fn declaration:

image

Un-nesting or removing the star also fixes issue:

image

Actual behavior:

See description

Reproduces how often:

100% of the time

Versions

$ atom --version
Atom    : 1.47.0
Electron: 5.0.13
Chrome  : 73.0.3683.121
Node    : 12.0.0

$ apm --version
apm  2.4.5
npm  6.2.0
node 10.2.1 x64
atom 1.47.0
python 2.7.16
git 2.24.1

MacOS, Catalina 10.15.4 (19E287)

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions