crates/languages/src/python/highlights.scm 🔗
@@ -226,6 +226,12 @@
">>"
"|"
"~"
+ "&="
+ "<<="
+ ">>="
+ "@="
+ "^="
+ "|="
] @operator
[
Peter Tripp created
Closes: https://github.com/zed-industries/zed/issues/33683
| Before | After |
| - | - |
| <img width="571" alt="Screenshot 2025-07-01 at 11 42 56"
src="https://github.com/user-attachments/assets/5ef79304-37bb-42a1-8891-d19a55a5095e"
/> | <img width="592" alt="Screenshot 2025-07-01 at 11 44 45"
src="https://github.com/user-attachments/assets/f28aa2a8-6306-4294-86e1-8f089f57b825"
/> |
Release Notes:
- python: Properly highlight additional operators ("&=", "<<=", ">>=",
"@=", "^=" and "|=")
crates/languages/src/python/highlights.scm | 6 ++++++
1 file changed, 6 insertions(+)
@@ -226,6 +226,12 @@
">>"
"|"
"~"
+ "&="
+ "<<="
+ ">>="
+ "@="
+ "^="
+ "|="
] @operator
[