diff --git a/crates/zed/src/languages/python/highlights.scm b/crates/zed/src/languages/python/highlights.scm index 71ab963d82664db4dd9a66b9e9ac0e85449caf57..0d85c8b6a9354a00ee8574ad5e76b659e22639cd 100644 --- a/crates/zed/src/languages/python/highlights.scm +++ b/crates/zed/src/languages/python/highlights.scm @@ -52,6 +52,14 @@ "{" @punctuation.special "}" @punctuation.special) @embedded +; Docstrings. +(function_definition + "async"? + "def" + name: (_) + (parameters)? + body: (block (expression_statement (string) @string.doc))) + [ "-" "-=" @@ -122,4 +130,4 @@ "yield" "match" "case" -] @keyword \ No newline at end of file +] @keyword