rust-playground
rust-playground copied to clipboard
Monaco highlights `int` as a type
I thought int was not a built in type in Rust and don't know if this is known issue.
See this playground.
See this playground.
Looks fine:
It appears you need to provide more information about what editor / editor settings you are using.
Sorry, didn't know editor and theme was relavant. Here's what I see.

Setting editor to monaco with any theme can reproduce.
https://microsoft.github.io/monaco-editor/ reproduces the problem:
You'll need to file an issue with them. Looks like the Rust config has both int and uint. Presumably this is from some very old code as those were renamed in 2014.
Thanks for the detailed explanation! Filed https://github.com/microsoft/monaco-editor/issues/3123.