aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'queries/python/highlights.scm')
-rw-r--r--queries/python/highlights.scm24
1 files changed, 3 insertions, 21 deletions
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
[