Reputation: 305
I have a piece of code that is the following:
let vector = new Vector2(mouseX / .75, mouseY / .75)
and this works perfectly. However, in VScode, the syntax highlighting becomes weird:
Almost as if the editor is thinking it is becoming a RegExp pattern.
So, the question is, is .75
an intended feature equivalent to 0.75
or not?
Thanks in advance!
EDIT: The two are the same thing, it is just a syntax error on VScode's part.
Upvotes: 0
Views: 102