VSCodeThemes icon indicating copy to clipboard operation
VSCodeThemes copied to clipboard

Monokai-Contrast not highlighting Python Structural Pattern Matching

Open KerberosMorphy opened this issue 2 years ago • 0 comments

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

KerberosMorphy avatar Nov 24 '21 15:11 KerberosMorphy