yapf icon indicating copy to clipboard operation
yapf copied to clipboard

Broken parser: `case` is a valid variable name

Open daskol opened this issue 1 year ago • 0 comments

case = 42
match case:
    case 42:
        print('answer')

The snippet above will be formatted with yapf as follows.

case = 42
match
case:
    case 42:
        print('answer')

daskol avatar Dec 13 '23 13:12 daskol