Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Rust) Types are not always highlighted #3539

Closed
Serial-ATA opened this issue May 22, 2022 · 2 comments · Fixed by #3540
Closed

(Rust) Types are not always highlighted #3539

Serial-ATA opened this issue May 22, 2022 · 2 comments · Fixed by #3540
Labels
bug help welcome Could use help from community language

Comments

@Serial-ATA
Copy link
Contributor

Describe the issue
Types will sometimes not receive any highlighting.

Which language seems to have the issue?
Rust

Are you using highlight or highlightAuto?
highlight

Sample Code to Reproduce

let vec: Vec<isize> = Vec::new();
                   // ^^^ Not highlighted (The first `Vec` as well as `new` are highlighted)
if 100 > i32::MAX {}
      // ^^^ Not highlighted

https://jsfiddle.net/k7xe4vsz/1/

Expected behavior
All types are highlighted.

Additional context
I noticed this when trying to upgrade from v9.5.0 to v11.5.1. Prior to the upgrade, both lines were properly highlighted.

@Serial-ATA Serial-ATA added bug help welcome Could use help from community language labels May 22, 2022
joshgoebel added a commit to joshgoebel/highlight.js that referenced this issue May 22, 2022
joshgoebel added a commit to joshgoebel/highlight.js that referenced this issue May 22, 2022
@joshgoebel
Copy link
Member

If you'd like to review the fix...

@Serial-ATA
Copy link
Contributor Author

Thanks for fixing this so quickly! It works perfectly. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help welcome Could use help from community language
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants