gerane / VSCodeThemes

Themes for Visual Studio Code
200 stars 77 forks source link

Monokai-Contrast not highlighting Python Structural Pattern Matching #94

Open KerberosMorphy opened 2 years ago

KerberosMorphy commented 2 years ago

Newly in Python 3.10 is the Structural Pattern Matching.

def make_point_3d(pt):
    match pt:
        case (x, y):
            return Point3d(x, y, 0)
        case (x, y, z):
            return Point3d(x, y, z)
        case Point2d(x, y):
            return Point3d(x, y, 0)
        case Point3d(_, _, _):
            return pt
        case _:
            raise TypeError("not a point we support")

match and case keyword aren't highlighted with the Monokai-Contrast theme:

image