From 95bcd6a8fa1baa0824d44b697ba05bcc0b97bd34 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Wed, 1 Mar 2023 12:26:26 -0500 Subject: feat: add `@string.documentation` where applicable --- queries/python/highlights.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'queries/python') diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm index fe66d7ca3..d25448000 100644 --- a/queries/python/highlights.scm +++ b/queries/python/highlights.scm @@ -176,7 +176,18 @@ (escape_sequence) @string.escape ; doc-strings -(expression_statement (string) @spell) + +(module . (expression_statement (string) @string.documentation @spell)) + +(class_definition + body: + (block + . (expression_statement (string) @string.documentation @spell))) + +(function_definition + body: + (block + . (expression_statement (string) @string.documentation @spell))) ; Tokens -- cgit v1.2.3-70-g09d2