diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2024-06-28 09:41:53 +0300 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-06-28 10:06:52 +0200 |
| commit | ec6307e5b042c73c5a26a75c7b6737b8efa85493 (patch) | |
| tree | 80193827cbb4494aae86f0b2348b41641adb2d98 /queries/python | |
| parent | fix(v): anchor comment highlight query (diff) | |
| download | nvim-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')
| -rw-r--r-- | queries/python/highlights.scm | 25 |
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 [ |
