Add brackets and missing operators to Python grammar (#11180)

Release Notes:

- Fixed #4341 

Before:

![before](https://github.com/zed-industries/zed/assets/16101408/34672e47-5131-481a-803e-064db8126cc9)

After:

![after](https://github.com/zed-industries/zed/assets/16101408/7d2405c6-d04f-4738-ad2e-a9424b1c9d19)
This commit is contained in:
adorabilis 2024-05-03 17:37:44 +08:00 committed by GitHub
parent f252d9cf67
commit 2306e3cd50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,6 +48,15 @@
(string) @string
(escape_sequence) @escape
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
(interpolation
"{" @punctuation.special
"}" @punctuation.special) @embedded
@ -96,6 +105,8 @@
"is"
"not"
"or"
"is not"
"not in"
] @operator
[