Why does Visual Studio Code not correctly render "isa" statement?


In VS Code suppose I have the following snippet:

if isa(true,Bool)
    println("This is true")

if true isa Bool
    println("This is true too")

You even see how the code statement here actually renders it correctly, but in VS Code:

You see how “isa” is not coloured yellow in the second approach.

Kind regards

1 Like

I think this is quite consistent. Function calls are coloured yellow, but infix notation is not colored yellow (a in b vs in(a,b) does the same for example).


If you use my Julia Color Themes, then the second isa is colored the same as other infix operators:


There are various other Julia optimizations, like the end being colored a darker shade of red then the if and for keywords.


I wonder If someone made a custom theme where the end keyword is transparent, making julia code look like python :thinking:

I think that would not be a good idea. If you miss to type end, you would get errors, but not see that that is the cause of error.