jdinhify / vscode-theme-gruvbox

Gruvbox theme for vscode based on https://github.com/morhetz/gruvbox
https://marketplace.visualstudio.com/items?itemName=jdinhlife.gruvbox
MIT License
267 stars 63 forks source link

Python match/case syntax highlight is not supporting #64

Open ruthus18 opened 1 year ago

ruthus18 commented 1 year ago

Hello! First of all, thank you for this pretty theme, love using it.

I have faced with problem that match/case syntax, which was added in Python 3.10, not supporting by theme. If you switch to default theme, everything is OK, so I suppose that the problem is not in IntelliSense, but in tokenization something inside the gruvbox theme.

Screenshot 2022-08-01 at 17 58 54

jdinhify commented 1 year ago

@ruthus18 would you be able to provide a full snippet to be used for investigating this?

leon332157 commented 1 year ago
def operation(op1,op2,op):
   match op:
     case '+':
        return op1+op2
     case '-':
        return op1-op2
     case '*':
        return op1*op2
     case '/':
        return op1/op2

It works on the default theme for vscode, image not sure if helpful but the css selector is image Using scope editor: Gruvbox: image Default: image This applies to both match and case, hopefully this is helpful. @jdinhify