From 997288c55253e27f782d991099490f80205d65bf Mon Sep 17 00:00:00 2001 From: Jakob Zahn Date: Thu, 3 Apr 2025 09:35:41 +0200 Subject: fix(python): highlight all types of docstrings (#7788) --- queries/python/highlights.scm | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'queries/python') diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm index 84b29412a..00250de1b 100644 --- a/queries/python/highlights.scm +++ b/queries/python/highlights.scm @@ -80,27 +80,9 @@ ] @string.escape ; doc-strings -(module - . - (comment)* - . - (expression_statement - (string - (string_content) @spell) @string.documentation)) - -(class_definition - body: (block - . - (expression_statement - (string - (string_content) @spell) @string.documentation))) - -(function_definition - body: (block - . - (expression_statement - (string - (string_content) @spell) @string.documentation))) +(expression_statement + (string + (string_content) @spell) @string.documentation) ; Tokens [ -- cgit v1.2.3-70-g09d2