Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
python: Highlight attribute docstrings (#20763)
Jaagup Averin7853e32f8093
diff --git a/crates/languages/src/python/highlights.scm b/crates/languages/src/python/highlights.scmindex 78e5126d409..6c3f027c197 100644--- a/crates/languages/src/python/highlights.scm+++ b/crates/languages/src/python/highlights.scm@@ -98,6 +98,25 @@(parameters)?body: (block (expression_statement (string) @string.doc)))+(module+ (expression_statement (assignment))+ . (expression_statement (string) @string.doc))++(class_definition+ body: (block+ (expression_statement (assignment))+ . (expression_statement (string) @string.doc)))++(class_definition+ body: (block+ (function_definition+ name: (identifier) @function.method.constructor+ (#eq? @function.method.constructor "__init__")+ body: (block+ (expression_statement (assignment))+ . (expression_statement (string) @string.doc)))))++["-""-="