aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python/highlights.scm
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2024-06-28 09:41:53 +0300
committerChristian Clason <c.clason@uni-graz.at>2024-06-28 10:06:52 +0200
commitec6307e5b042c73c5a26a75c7b6737b8efa85493 (patch)
tree80193827cbb4494aae86f0b2348b41641adb2d98 /queries/python/highlights.scm
parentfix(v): anchor comment highlight query (diff)
downloadnvim-treesitter-ec6307e5b042c73c5a26a75c7b6737b8efa85493.tar
nvim-treesitter-ec6307e5b042c73c5a26a75c7b6737b8efa85493.tar.gz
nvim-treesitter-ec6307e5b042c73c5a26a75c7b6737b8efa85493.tar.bz2
nvim-treesitter-ec6307e5b042c73c5a26a75c7b6737b8efa85493.tar.lz
nvim-treesitter-ec6307e5b042c73c5a26a75c7b6737b8efa85493.tar.xz
nvim-treesitter-ec6307e5b042c73c5a26a75c7b6737b8efa85493.tar.zst
nvim-treesitter-ec6307e5b042c73c5a26a75c7b6737b8efa85493.zip
refactor(python): merge docstring queries
Diffstat (limited to 'queries/python/highlights.scm')
-rw-r--r--queries/python/highlights.scm25
1 files changed, 3 insertions, 22 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index 5e5a2a88d..b4fa1fc46 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -204,41 +204,22 @@
(comment)*
.
(expression_statement
- (string) @string.documentation))
-
-(class_definition
- body: (block
- .
- (expression_statement
- (string) @string.documentation)))
-
-(function_definition
- body: (block
- .
- (expression_statement
- (string) @string.documentation)))
-
-(module
- .
- (comment)*
- .
- (expression_statement
(string
- (string_content) @spell)))
+ (string_content) @spell) @string.documentation))
(class_definition
body: (block
.
(expression_statement
(string
- (string_content) @spell))))
+ (string_content) @spell) @string.documentation)))
(function_definition
body: (block
.
(expression_statement
(string
- (string_content) @spell))))
+ (string_content) @spell) @string.documentation)))
; Tokens
[