-
Notifications
You must be signed in to change notification settings - Fork 3.7k
(Rust) Incorrect highlighting of statements #3881
Copy link
Copy link
Closed
Labels
buggood first issueShould be easier for first time contributorsShould be easier for first time contributorshelp welcomeCould use help from communityCould use help from communitylanguage
Description
if and while statements are highlighted as functions when using parenthesized expressions.
This seems to happen for any valid rust identifier.
Discovered this in the demo section of the website.
if (1 + 2) * 2 == 6 {}
if true {}
while (1 + 2) * 2 == 6 {}
while true {}
for (a, b) in (0..10).enumerate() {}
for a in 0..10 {}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
buggood first issueShould be easier for first time contributorsShould be easier for first time contributorshelp welcomeCould use help from communityCould use help from communitylanguage