vscode-language-renpy
vscode-language-renpy copied to clipboard
Missing syntax highlighting for dataclasses and class references
Extension version
2.1.1
Issue description
When creating dataclasses, fields and references to classes aren't highlighted, but instead are shown in the default color (as if they were being handled by a python 2 syntax highlighter)
As well, the id
field is colored in gold due to the builtin function.
Loading the file as explicitly python displays the following:
Ideally it'd be nice for the extension to be able to render classes like these similarly
Scope inspector screenshots
Code
init python:
@dataclass
class LatLonPair:
lon: float,
lat: float
@dataclass
class SimpleWeatherInfo:
id: int,
main: str,
description: str,
icon: str
Hmm, that's interesting. It should be the same.. I might have a look later, see if I can spot the issue.
One thing I can think of is updated grammar files or VSCode's python now having a build in language server. I know there is an official plugin