Skip to content

Commit

Permalink
Add brackets and missing operators to Python grammar (#11180)
Browse files Browse the repository at this point in the history
  • Loading branch information
adorabilis committed May 3, 2024
1 parent f252d9c commit 2306e3c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions crates/languages/src/python/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@
(string) @string
(escape_sequence) @escape

[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket

(interpolation
"{" @punctuation.special
"}" @punctuation.special) @embedded
Expand Down Expand Up @@ -96,6 +105,8 @@
"is"
"not"
"or"
"is not"
"not in"
] @operator

[
Expand Down

0 comments on commit 2306e3c

Please sign in to comment.