Closed
Description
From @kayahr on July 4, 2016 11:9
- VSCode Version: 1.2.1
- OS Version: Debian GNU/Linux 8.5
Steps to Reproduce:
- Open new TypeScript file.
- Copy/Paste the following code:
class Vector2 {
public foobar(): Vector2 {
return this;
}
}
class Vector2D {
public foobar(): Vector2D {
return this;
}
}
The method in the class Vector2D
is properly colored but in the class Vector2
the syntax highlighting gets confused. Looks like this has something to do with the class name ending with a number.
Here is a screenshot showing a wrong color of the return
and this
keywords:
In larger source code this gets quite confusing because subsequent methods in the same class are also affected.
Copied from original issue: microsoft/vscode#8720
Metadata
Metadata
Assignees
Labels
No labels