vscode-vlang
vscode-vlang copied to clipboard
Added i32 as a type for syntax highlight
I think the title says it all
Right now, i32 is a type alias, not a "real" type.
@JalonSolov but it is still a type. Why not highlight it as one.
I think this is not a dicussion to have in this repo but shouldn't i32 by the concrete type and int the alias. After all we have i8, i16, and i64.
u8 is also there, as an alias of byte. Yes, i32 and u8 should be the concrete types.
However, it might be useful to highlight type aliases differently from concrete types, because they do have different properties... such as being able to add your own custom methods to an alias, which you can't do with a concrete type.
@JalonSolov I updated the PR to only include i32 in the numeric type list. Same place where u8 is defined. This should fix i32 being the different one.

any news on this one?
hello @txgruppi I recommend you talk about this on Discord https://discord.gg/2gnC8YK4qC There is no channel for vscode-vlang but for vls and ideas-suggestions... The whole team is here. so I think it will be the fastest way to reach a resolution
u8 has been switched to the real type, with byte as an alias. Nothing has changed with i32 vs int, yet.